94 lines
2.1 KiB
JSON
94 lines
2.1 KiB
JSON
{
|
|
"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
|
|
}
|
|
} |