summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/q-0610.json
blob: 2797e802923ffefbd05250cc99d10bebc9c66037 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
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
	}
}