tracks/ruby/exercises/change/change_test.rb in trackler-2.2.1.19 vs tracks/ruby/exercises/change/change_test.rb in trackler-2.2.1.20

- old
+ new

@@ -1,9 +1,9 @@ require 'minitest/autorun' require_relative 'change' -# Common test data version: 1.0.0 3d8b5b3 +# Common test data version: 1.1.0 52cf1cf class ChangeTest < Minitest::Test def test_single_coin_change # skip assert_equal [25], Change.generate([1, 5, 10, 25, 100], 25) end @@ -31,10 +31,15 @@ def test_possible_change_without_unit_coins_available skip assert_equal [2, 2, 2, 5, 10], Change.generate([2, 5, 10, 20, 50], 21) end + def test_another_possible_change_without_unit_coins_available + skip + assert_equal [4, 4, 4, 5, 5, 5], Change.generate([4, 5], 27) + end + def test_no_coins_make_0_change skip assert_equal [], Change.generate([1, 5, 10, 21, 25], 0) end @@ -70,8 +75,8 @@ # If you are curious, read more about constants on RubyDoc: # http://ruby-doc.org/docs/ruby-doc-bundle/UsersGuide/rg/constants.html def test_bookkeeping skip - assert_equal 1, BookKeeping::VERSION + assert_equal 2, BookKeeping::VERSION end end