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
95
96
97
98
99
100
101
102
103
104
105
106
|
{
"description": "Test #subobject parser to use invalid assignments and create `_ERRC` (#1299, en)",
"setup": [
{
"namespace": "SMW_NS_PROPERTY",
"page": "Has page",
"contents": "[[Has type::Page]]"
},
{
"page": "Example/P0302/1",
"contents": "{{#subobject:abc.name |@category=ABC;123|+sep=;}}"
},
{
"page": "Example/P0302/2",
"contents": "{{#subobject:|Modification date= 1 Jan 1970 }}"
},
{
"page": "Example/P0302/3",
"contents": "{{#subobject:|Date= InvalidValue }}"
},
{
"page": "Example/P0302/4",
"contents": "{{#set_recurring_event:some.foo|property=Has date |start=June 8, 2010 |unit=day |period=1 |limit=10 }}"
}
],
"tests": [
{
"type": "parser",
"about": "#0 dot scheme not permitted for user-defined named identifiers",
"subject": "Example/P0302/1",
"assert-store": {
"semantic-data": {
"strictPropertyValueMatch": false,
"propertyCount": 3,
"propertyKeys": [
"_ERRC",
"_SKEY",
"_MDAT"
],
"propertyValues": []
}
}
},
{
"type": "parser",
"about": "#1 restricted property",
"subject": "Example/P0302/2#_6bcfd8f29c79e61086605597e7f2a8d4",
"assert-store": {
"semantic-data": {
"strictPropertyValueMatch": false,
"propertyCount": 2,
"propertyKeys": [
"_ERRC",
"_SKEY"
],
"propertyValues": []
}
}
},
{
"type": "parser",
"about": "#2 invalid value",
"subject": "Example/P0302/3#_d22883317b11ebaf00a39aaffc1d30fa",
"assert-store": {
"semantic-data": {
"strictPropertyValueMatch": false,
"propertyCount": 2,
"propertyKeys": [
"_ERRC",
"_SKEY"
],
"propertyValues": []
}
}
},
{
"type": "parser",
"about": "#3 recurring events invalid name",
"subject": "Example/P0302/4",
"assert-store": {
"semantic-data": {
"strictPropertyValueMatch": false,
"propertyCount": 3,
"propertyKeys": [
"_ERRC",
"_SKEY",
"_MDAT"
],
"propertyValues": []
}
}
}
],
"settings": {
"wgContLang": "en",
"wgLang": "en",
"smwgPageSpecialProperties": [
"_MDAT"
]
},
"meta": {
"version": "2",
"is-incomplete": false,
"debug": false
}
}
|