diff options
Diffstat (limited to 'www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/q-0610.json')
-rw-r--r-- | www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/q-0610.json | 94 |
1 files changed, 94 insertions, 0 deletions
diff --git a/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/q-0610.json b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/q-0610.json new file mode 100644 index 00000000..2797e802 --- /dev/null +++ b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/q-0610.json @@ -0,0 +1,94 @@ +{ + "description": "Test `_wpg` range queries (#1291, `smwStrictComparators=false`, skip virtuoso)", + "setup": [ + { + "page": "Example/Q0610-A", + "contents": "[[Category:Q0610]]" + }, + { + "page": "Example/Q0610-AAA", + "contents": "[[Category:Q0610]]" + }, + { + "page": "Example/Q0610-BBB", + "contents": "[[Category:Q0610]]" + }, + { + "page": "Example/Q0610-CCC", + "contents": "[[Category:Q0610]]" + }, + { + "page": "Example/Q0610-DDD", + "contents": "[[Category:Q0610]]" + }, + { + "page": "Example/Q0610-ZZZ", + "contents": "[[Category:Q0610-Z]] {{DEFAULTSORT:Example/Q0610-CCC}}" + } + ], + "tests": [ + { + "type": "query", + "about": "#0 range >A <C (non strict comparator)", + "condition": "[[Category:Q0610]] [[>Example/Q0610-A]] [[<Example/Q0610-C]]", + "printouts": [], + "parameters": { + "limit": 10 + }, + "assert-queryresult": { + "count": 3, + "results": [ + "Example/Q0610-A#0##", + "Example/Q0610-AAA#0##", + "Example/Q0610-BBB#0##" + ] + } + }, + { + "type": "query", + "about": "#1 range >AA <CCC (non strict comparator)", + "condition": "[[Category:Q0610]] [[>Example/Q0610-AA]] [[<Example/Q0610-CCC]]", + "printouts": [], + "parameters": { + "limit": 10 + }, + "assert-queryresult": { + "count": 3, + "results": [ + "Example/Q0610-AAA#0##", + "Example/Q0610-BBB#0##", + "Example/Q0610-CCC#0##" + ] + } + }, + { + "type": "query", + "about": "#2 range >AA <CCC (non strict comparator), default sort change includes ZZZ object", + "condition": "<q>[[Category:Q0610]] OR [[Category:Q0610-Z]]</q> [[>Example/Q0610-AA]] [[<Example/Q0610-CCC]]", + "printouts": [], + "parameters": { + "limit": 10 + }, + "assert-queryresult": { + "count": 4, + "results": [ + "Example/Q0610-AAA#0##", + "Example/Q0610-BBB#0##", + "Example/Q0610-CCC#0##", + "Example/Q0610-ZZZ#0##" + ] + } + } + ], + "settings": { + "smwStrictComparators": false + }, + "meta": { + "skip-on": { + "virtuoso": "Virtuoso 6.1 doesn't understand ranges, Failed asserting that 5 matches expected 3" + }, + "version": "2", + "is-incomplete": false, + "debug": false + } +}
\ No newline at end of file |