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
|
{
"description": "Test #set_recurring_event parser week number parameter",
"setup": [
{
"namespace": "SMW_NS_PROPERTY",
"page": "Has date",
"contents": "[[Has type::Date]]"
},
{
"page": "Team meetings 1",
"contents": "{{#set_recurring_event: Is team meeting |property=Has date |start=January 15, 2019 9:30 am |end=December 31, 2019 |unit=month |week number=2 }}"
},
{
"page": "Team meetings 2",
"contents": "{{#set_recurring_event: Is team meeting |property=Has date |start=January 31, 2019 9:30 am |end=December 31, 2019 |unit=month |week number=-1 }}"
},
{
"page": "Team meetings in 2019 - 0",
"contents": "{{#ask: [[Is team meeting::Team meetings 1]] |format=count }}"
},
{
"page": "Team meetings in 2019 - 1",
"contents": "{{#ask: [[Is team meeting::Team meetings 1]] |?Has date |format=plainlist }}"
},
{
"page": "Team meetings in 2019 - 2",
"contents": "{{#ask: [[Is team meeting::Team meetings 2]] |format=count }}"
},
{
"page": "Team meetings in 2019 - 3",
"contents": "{{#ask: [[Is team meeting::Team meetings 2]] |?Has date |format=plainlist }}"
}
],
"tests": [
{
"type": "parser",
"about": "#0 #set_recurring_event parser with end date and week number dates - count",
"subject": "Team meetings in 2019 - 0",
"assert-output": {
"to-contain": [
"12"
]
}
},
{
"type": "parser",
"about": "#1 #set_recurring_event parser with end date and week number dates - print",
"subject": "Team meetings in 2019 - 1",
"assert-output": {
"to-contain": [
"10 décembre 2019 09:30:00"
]
}
},
{
"type": "parser",
"about": "#2 #set_recurring_event parser with end date and week number dates - count",
"subject": "Team meetings in 2019 - 2",
"assert-output": {
"to-contain": [
"12"
]
}
},
{
"type": "parser",
"about": "#3 #set_recurring_event parser with end date and week number dates - print",
"subject": "Team meetings in 2019 - 3",
"assert-output": {
"to-contain": [
"29 août 2019 09:30:00"
]
}
}
],
"settings": {
"wgContLang": "fr",
"wgLang": "de"
},
"meta": {
"version": "2",
"is-incomplete": false,
"debug": false
}
}
|