mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-09-21 08:50:05 +00:00
Enable wikitext tests
This commit is contained in:
@@ -2,7 +2,8 @@
|
|||||||
"description": "TiddlyWiki core tests",
|
"description": "TiddlyWiki core tests",
|
||||||
"plugins": [
|
"plugins": [
|
||||||
"tiddlywiki/jasmine",
|
"tiddlywiki/jasmine",
|
||||||
"tiddlywiki/geospatial"
|
"tiddlywiki/geospatial",
|
||||||
|
"tiddlywiki/internals"
|
||||||
],
|
],
|
||||||
"themes": [
|
"themes": [
|
||||||
"tiddlywiki/vanilla",
|
"tiddlywiki/vanilla",
|
||||||
|
|||||||
@@ -17,295 +17,12 @@ title: Output
|
|||||||
|
|
||||||
<$text text=<<test-filter>>/>
|
<$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
|
title: ExpectedResult
|
||||||
|
|
||||||
<p>1 2 3 :sort[length[]add[1]]-{
|
<p>1 2 3 :sort[length[]add[1]]-input,inputFilter,output,runs--0,1,2,3</p>
|
||||||
"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>
|
|
||||||
Reference in New Issue
Block a user