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
|
{
"description": "Test #set_recurring_event parser (#3541, en)",
"setup": [
{
"namespace": "SMW_NS_PROPERTY",
"page": "Has date",
"contents": "[[Has type::Date]]"
},
{
"page": "John Doe's Birthdays",
"contents": "{{#set_recurring_event: Is birthday |property=Has date |start=1948-11-03 |end=2019-01-06 |unit=year |period=1 }}"
},
{
"page": "John Doe's Number of Birthdays",
"contents": "{{#ask: [[Is birthday::John Doe's Birthdays]] |format=count }}"
},
{
"page": "Jane Doe's Birthdays",
"contents": "{{#set_recurring_event: Is birthday |property=Has date |start=1953-05-06 |unit=year |period=1 }}"
},
{
"page": "Jane Doe's Number of Birthdays",
"contents": "{{#ask: [[Is birthday::Jane Doe's Birthdays]] |format=count }}"
}
],
"tests": [
{
"type": "parser",
"about": "#0 #set_recurring_event parser with end date",
"subject": "John Doe's Number of Birthdays",
"assert-output": {
"to-contain": [
"71"
]
}
},
{
"type": "parser",
"about": "#1 #set_recurring_event parser without end date",
"subject": "Jane Doe's Number of Birthdays",
"assert-output": {
"to-contain": [
"111"
]
}
}
],
"settings": {
"wgContLang": "en",
"wgLang": "en",
"smwgDefaultNumRecurringEvents": "110"
},
"meta": {
"version": "2",
"is-incomplete": false,
"debug": false
}
}
|