Skip to content

Commit 8af32a5

Browse files
Instihilary
authored andcommitted
Regenerate two-bucket based on updated canonical data (#604)
two-bucket: Regenerate tests based on updated canonical data
1 parent 12e16fe commit 8af32a5

File tree

3 files changed

+20
-4
lines changed

3 files changed

+20
-4
lines changed

exercises/two-bucket/.meta/.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2
1+
3

exercises/two-bucket/example.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module BookKeeping
2-
VERSION = 2
2+
VERSION = 3
33
end
44

55
class TwoBucket

exercises/two-bucket/two_bucket_test.rb

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
require 'minitest/autorun'
33
require_relative 'two_bucket'
44

5-
# Common test data version: 1.0.1 7aa0b42
5+
# Common test data version: 1.1.0 531486a
66
class TwoBucketTest < Minitest::Test
77
def test_bucket_one_size_3_bucket_two_size_5_goal_1_start_with_bucket_one
88
# skip
@@ -36,6 +36,22 @@ def test_bucket_one_size_7_bucket_two_size_11_goal_2_start_with_bucket_two
3636
assert_equal 7, two_bucket.other_bucket
3737
end
3838

39+
def test_bucket_one_size_1_bucket_two_size_3_goal_3_start_with_bucket_two
40+
skip
41+
two_bucket = TwoBucket.new(1, 3, 3, 'two')
42+
assert_equal 1, two_bucket.moves
43+
assert_equal 'two', two_bucket.goal_bucket
44+
assert_equal 0, two_bucket.other_bucket
45+
end
46+
47+
def test_bucket_one_size_2_bucket_two_size_3_goal_3_start_with_bucket_one
48+
skip
49+
two_bucket = TwoBucket.new(2, 3, 3, 'one')
50+
assert_equal 4, two_bucket.moves
51+
assert_equal 'two', two_bucket.goal_bucket
52+
assert_equal 1, two_bucket.other_bucket
53+
end
54+
3955
# Problems in exercism evolve over time, as we find better ways to ask
4056
# questions.
4157
# The version number refers to the version of the problem you solved,
@@ -55,6 +71,6 @@ def test_bucket_one_size_7_bucket_two_size_11_goal_2_start_with_bucket_two
5571

5672
def test_bookkeeping
5773
skip
58-
assert_equal 2, BookKeeping::VERSION
74+
assert_equal 3, BookKeeping::VERSION
5975
end
6076
end

0 commit comments

Comments
 (0)