Skip to content

Commit 3698399

Browse files
authored
two-bucket: test buckets with a big difference in size (#2589)
1 parent 7fc6778 commit 3698399

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

exercises/two-bucket/canonical-data.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,44 @@
9797
"otherBucket": 2
9898
}
9999
},
100+
{
101+
"uuid": "58d70152-bf2b-46bb-ad54-be58ebe94c03",
102+
"description": "Measure using bucket one much bigger than bucket two",
103+
"comments": [
104+
"Verify the solution is able to pour several times from bucket one to two with no refill"
105+
],
106+
"property": "measure",
107+
"input": {
108+
"bucketOne": 5,
109+
"bucketTwo": 1,
110+
"goal": 2,
111+
"startBucket": "one"
112+
},
113+
"expected": {
114+
"moves": 6,
115+
"goalBucket": "one",
116+
"otherBucket": 1
117+
}
118+
},
119+
{
120+
"uuid": "9dbe6499-caa5-4a58-b5ce-c988d71b8981",
121+
"description": "Measure using bucket one much smaller than bucket two",
122+
"comments": [
123+
"Verify the solution is able to pour several times from bucket one to two without emptying"
124+
],
125+
"property": "measure",
126+
"input": {
127+
"bucketOne": 3,
128+
"bucketTwo": 15,
129+
"goal": 9,
130+
"startBucket": "one"
131+
},
132+
"expected": {
133+
"moves": 6,
134+
"goalBucket": "two",
135+
"otherBucket": 0
136+
}
137+
},
100138
{
101139
"uuid": "449be72d-b10a-4f4b-a959-ca741e333b72",
102140
"description": "Not possible to reach the goal",

0 commit comments

Comments
 (0)