Skip to content

Commit 5c3af76

Browse files
committed
kindergarten-garden: add canonical data
1 parent 73f4394 commit 5c3af76

File tree

1 file changed

+126
-0
lines changed

1 file changed

+126
-0
lines changed
Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
{
2+
"exercise": "kindergarten-garden",
3+
"version": "1.0.0",
4+
"comments": [
5+
"Garden can be created with just a diagram or a diagram and students.",
6+
"The default students are:",
7+
" Alice, Bob, Charlie, David, Eve, Fred, Ginny, Harriet, Ileana, Joseph, Kincaid, and Larry."
8+
],
9+
"cases": [
10+
{
11+
"description": "partial garden tests",
12+
"cases": [
13+
{
14+
"description": "test Alice's garden",
15+
"property": "plants",
16+
"diagram": "RC\nGG",
17+
"student": "Alice",
18+
"expected": ["radishes", "clover", "grass", "grass"]
19+
},
20+
{
21+
"description": "test different garden for Alice",
22+
"property": "plants",
23+
"diagram": "VC\nRC",
24+
"student": "Alice",
25+
"expected": ["violets", "clover", "radishes", "clover"]
26+
},
27+
{
28+
"description": "test Bob's garden",
29+
"property": "plants",
30+
"diagram": "VVCG\nVVRC",
31+
"student": "Bob",
32+
"expected": ["clover", "grass", "radishes", "clover"]
33+
},
34+
{
35+
"description": "test Bob and Charlie's garden",
36+
"cases": [
37+
{
38+
"description": "test Bob's garden",
39+
"diagram": "VVCCGG\nVVCCGG",
40+
"property": "plants",
41+
"student": "Bob",
42+
"expected": ["clover", "clover", "clover", "clover"]
43+
},
44+
{
45+
"description": "test Charlie's garden",
46+
"diagram": "VVCCGG\nVVCCGG",
47+
"property": "plants",
48+
"student": "Charlie",
49+
"expected": ["grass", "grass", "grass", "grass"]
50+
}
51+
]
52+
}
53+
]
54+
},
55+
{
56+
"description": "full garden tests",
57+
"cases": [
58+
{
59+
"description": "test Alice's garden",
60+
"property": "plants",
61+
"diagram": "VRCGVVRVCGGCCGVRGCVCGCGV\nVRCCCGCRRGVCGCRVVCVGCGCV",
62+
"student": "Alice",
63+
"expected": ["violets", "radishes", "violets", "radishes"]
64+
},
65+
{
66+
"description": "test Bob's garden",
67+
"diagram": "VRCGVVRVCGGCCGVRGCVCGCGV\nVRCCCGCRRGVCGCRVVCVGCGCV",
68+
"property": "plants",
69+
"student": "Bob",
70+
"expected": ["clover", "grass", "clover", "clover"]
71+
},
72+
{
73+
"description": "test Kincaid's garden",
74+
"diagram": "VRCGVVRVCGGCCGVRGCVCGCGV\nVRCCCGCRRGVCGCRVVCVGCGCV",
75+
"property": "plants",
76+
"student": "Kincaid",
77+
"expected": ["grass", "clover", "clover", "grass"]
78+
},
79+
{
80+
"description": "test Larry's garden",
81+
"diagram": "VRCGVVRVCGGCCGVRGCVCGCGV\nVRCCCGCRRGVCGCRVVCVGCGCV",
82+
"property": "plants",
83+
"student": "Larry",
84+
"expected": ["grass", "violets", "clover", "violets"]
85+
}
86+
]
87+
},
88+
{
89+
"description": "disordered tests",
90+
"cases": [
91+
{
92+
"description": "test Patricia's garden",
93+
"property": "plants",
94+
"students": ["Samantha", "Patricia", "Xander", "Roger"],
95+
"diagram": ["VCRRGVRG\nRVGCCGCV"],
96+
"student": "Patricia",
97+
"expected": ["violets", "clover", "radishes", "violets"]
98+
},
99+
{
100+
"description": "test Roger's garden",
101+
"property": "plants",
102+
"students": ["Samantha", "Patricia", "Xander", "Roger"],
103+
"diagram": ["VCRRGVRG\nRVGCCGCV"],
104+
"student": "Roger",
105+
"expected": ["radishes", "radishes", "grass", "clover"]
106+
},
107+
{
108+
"description": "test Samantha's garden",
109+
"property": "plants",
110+
"students": ["Samantha", "Patricia", "Xander", "Roger"],
111+
"diagram": ["VCRRGVRG\nRVGCCGCV"],
112+
"student": "Samantha",
113+
"expected": ["grass", "violets", "clover", "grass"]
114+
},
115+
{
116+
"description": "test Xander's garden",
117+
"property": "plants",
118+
"students": ["Samantha", "Patricia", "Xander", "Roger"],
119+
"diagram": ["VCRRGVRG\nRVGCCGCV"],
120+
"student": "Xander",
121+
"expected": ["radishes", "grass", "clover", "violets"]
122+
}
123+
]
124+
}
125+
]
126+
}

0 commit comments

Comments
 (0)