2
2
require 'minitest/autorun'
3
3
require_relative 'two_bucket'
4
4
5
- # Common test data version: 1.0.1 7aa0b42
5
+ # Common test data version: 1.1.0 531486a
6
6
class TwoBucketTest < Minitest ::Test
7
7
def test_bucket_one_size_3_bucket_two_size_5_goal_1_start_with_bucket_one
8
8
# skip
@@ -36,6 +36,22 @@ def test_bucket_one_size_7_bucket_two_size_11_goal_2_start_with_bucket_two
36
36
assert_equal 7 , two_bucket . other_bucket
37
37
end
38
38
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
+
39
55
# Problems in exercism evolve over time, as we find better ways to ask
40
56
# questions.
41
57
# 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
55
71
56
72
def test_bookkeeping
57
73
skip
58
- assert_equal 2 , BookKeeping ::VERSION
74
+ assert_equal 3 , BookKeeping ::VERSION
59
75
end
60
76
end
0 commit comments