1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2026-01-11 01:49:03 +00:00

Enable wikitext tests

This commit is contained in:
Jeremy Ruston
2025-05-02 10:12:04 +01:00
parent 29a5a1c571
commit 6eddffd7c5
2 changed files with 8 additions and 290 deletions

View File

@@ -2,7 +2,8 @@
"description": "TiddlyWiki core tests",
"plugins": [
"tiddlywiki/jasmine",
"tiddlywiki/geospatial"
"tiddlywiki/geospatial",
"tiddlywiki/internals"
],
"themes": [
"tiddlywiki/vanilla",

View File

@@ -17,295 +17,12 @@ title: Output
<$text text=<<test-filter>>/>
-
<$text text=<<test-filter-wrapper>>/>
<$text text={{{ [<test-filter-wrapper>jsonindexes[]join[,]] }}}/>
-
<$text text={{{ [<test-filter-wrapper>jsonindexes[inputFilter]join[,]] }}}/>
-
<$text text={{{ [<test-filter-wrapper>jsonindexes[runs]join[,]] }}}/>
+
title: ExpectedResult
<p>1 2 3 :sort[length[]add[1]]-{
"input": [
"$:/core",
"ExpectedResult",
"Output"
],
"runs": [
{
"input": [],
"prefixName": "or",
"suffixes": [],
"operations": [
{
"operators": [
{
"operatorName": "title",
"operands": [
"1"
],
"parseTree": {
"operator": "title",
"operands": [
{
"text": "1",
"value": "1"
}
]
},
"input": [
"$:/core",
"ExpectedResult",
"Output"
],
"output": [
"1"
]
}
]
}
],
"output": [
"1"
]
},
{
"input": [
"1"
],
"prefixName": "or",
"suffixes": [],
"operations": [
{
"operators": [
{
"operatorName": "title",
"operands": [
"2"
],
"parseTree": {
"operator": "title",
"operands": [
{
"text": "2",
"value": "2"
}
]
},
"input": [
"$:/core",
"ExpectedResult",
"Output"
],
"output": [
"2"
]
}
]
}
],
"output": [
"1",
"2"
]
},
{
"input": [
"1",
"2"
],
"prefixName": "or",
"suffixes": [],
"operations": [
{
"operators": [
{
"operatorName": "title",
"operands": [
"3"
],
"parseTree": {
"operator": "title",
"operands": [
{
"text": "3",
"value": "3"
}
]
},
"input": [
"$:/core",
"ExpectedResult",
"Output"
],
"output": [
"3"
]
}
]
}
],
"output": [
"1",
"2",
"3"
]
},
{
"input": [
"1",
"2",
"3"
],
"prefixName": "sort",
"suffixes": [],
"operations": [
{
"operators": [
{
"operatorName": "length",
"operands": [
""
],
"parseTree": {
"operator": "length",
"operands": [
{
"text": "",
"value": ""
}
]
},
"input": [
"1"
],
"output": [
"1"
]
},
{
"operatorName": "add",
"operands": [
"1"
],
"parseTree": {
"operator": "add",
"operands": [
{
"text": "1",
"value": "1"
}
]
},
"input": [
"1"
],
"output": [
"2"
]
}
]
},
{
"operators": [
{
"operatorName": "length",
"operands": [
""
],
"parseTree": {
"operator": "length",
"operands": [
{
"text": "",
"value": ""
}
]
},
"input": [
"2"
],
"output": [
"1"
]
},
{
"operatorName": "add",
"operands": [
"1"
],
"parseTree": {
"operator": "add",
"operands": [
{
"text": "1",
"value": "1"
}
]
},
"input": [
"1"
],
"output": [
"2"
]
}
]
},
{
"operators": [
{
"operatorName": "length",
"operands": [
""
],
"parseTree": {
"operator": "length",
"operands": [
{
"text": "",
"value": ""
}
]
},
"input": [
"3"
],
"output": [
"1"
]
},
{
"operatorName": "add",
"operands": [
"1"
],
"parseTree": {
"operator": "add",
"operands": [
{
"text": "1",
"value": "1"
}
]
},
"input": [
"1"
],
"output": [
"2"
]
}
]
}
],
"output": [
"1",
"2",
"3"
]
}
],
"inputFilter": "1 2 3 :sort[length[]add[1]]",
"output": [
"1",
"2",
"3"
]
}</p>
<p>1 2 3 :sort[length[]add[1]]-input,inputFilter,output,runs--0,1,2,3</p>