Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

two-bucket: Apply new "input" policy #1084

Merged
merged 1 commit into from
Jan 11, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 38 additions & 26 deletions exercises/two-bucket/canonical-data.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
{
"exercise": "two-bucket",
"version": "1.2.0",
"version": "1.3.0",
"cases": [
{
"description": "Measure using bucket one of size 3 and bucket two of size 5 - start with bucket one",
"property": "measure",
"bucket_one": 3,
"bucket_two": 5,
"goal": 1,
"start_bucket": "one",
"input": {
"bucket_one": 3,
"bucket_two": 5,
"goal": 1,
"start_bucket": "one"
},
"expected": {
"moves": 4,
"goal_bucket": "one",
Expand All @@ -18,10 +20,12 @@
{
"description": "Measure using bucket one of size 3 and bucket two of size 5 - start with bucket two",
"property": "measure",
"bucket_one": 3,
"bucket_two": 5,
"goal": 1,
"start_bucket": "two",
"input": {
"bucket_one": 3,
"bucket_two": 5,
"goal": 1,
"start_bucket": "two"
},
"expected": {
"moves": 8,
"goal_bucket": "two",
Expand All @@ -31,10 +35,12 @@
{
"description": "Measure using bucket one of size 7 and bucket two of size 11 - start with bucket one",
"property": "measure",
"bucket_one": 7,
"bucket_two": 11,
"goal": 2,
"start_bucket": "one",
"input": {
"bucket_one": 7,
"bucket_two": 11,
"goal": 2,
"start_bucket": "one"
},
"expected": {
"moves": 14,
"goal_bucket": "one",
Expand All @@ -44,10 +50,12 @@
{
"description": "Measure using bucket one of size 7 and bucket two of size 11 - start with bucket two",
"property": "measure",
"bucket_one": 7,
"bucket_two": 11,
"goal": 2,
"start_bucket": "two",
"input": {
"bucket_one": 7,
"bucket_two": 11,
"goal": 2,
"start_bucket": "two"
},
"expected": {
"moves": 18,
"goal_bucket": "two",
Expand All @@ -57,10 +65,12 @@
{
"description": "Measure one step using bucket one of size 1 and bucket two of size 3 - start with bucket two",
"property": "measure",
"bucket_one": 1,
"bucket_two": 3,
"goal": 3,
"start_bucket": "two",
"input": {
"bucket_one": 1,
"bucket_two": 3,
"goal": 3,
"start_bucket": "two"
},
"expected": {
"moves": 1,
"goal_bucket": "two",
Expand All @@ -70,15 +80,17 @@
{
"description": "Measure using bucket one of size 2 and bucket two of size 3 - start with bucket one and end with bucket two",
"property": "measure",
"bucket_one": 2,
"bucket_two": 3,
"goal": 3,
"start_bucket": "one",
"input": {
"bucket_one": 2,
"bucket_two": 3,
"goal": 3,
"start_bucket": "one"
},
"expected": {
"moves": 2,
"goal_bucket": "two",
"other_bucket": 2
}
}
]
}
}