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
|
{
"description": "Test in-text `_txt` 00 string/loose comparison (#2061)",
"setup": [
{
"namespace": "SMW_NS_PROPERTY",
"page": "Has text",
"contents": "[[Has type::Text]]"
},
{
"page": "Example/P0441/1",
"contents": "[[Has text::011]] [[Has text::0011]]"
},
{
"page": "Example/P0441/1",
"contents": "[[Has text::011]] [[Has text::00011]]"
},
{
"page": "Example/P0441/2",
"contents": "{{#ask: [[Example/P0441/1]] |?Has text }}",
"message-cache": "clear"
}
],
"tests": [
{
"type": "parser",
"about": "#0",
"subject": "Example/P0441/2",
"assert-output": {
"to-contain": [
"<td class=\"Has-text smwtype_txt\" data-sort-value=\"011\">011<br />00011</td>"
],
"no-contain": [
"<td class=\"Has-text smwtype_txt\" data-sort-value=\"011\">011</td>"
]
}
}
],
"settings": {
"wgContLang": "en",
"wgLang": "en"
},
"meta": {
"version": "2",
"is-incomplete": false,
"debug": false
}
}
|