On Jan 25, 2008 10:24 PM, James Gray <james / grayproductions.net> wrote: > On Jan 25, 2008, at 3:09 PM, Jesù¸ Gabriel y GaláÏ wrote: > > Is it ok to share test cases before the spoiler? > > Sure. This is what I'm currently working on: require 'test/unit' class TestMakeChange < Test::Unit::TestCase def test_zero assert_equal([], make_change(0)) end def test_change_equal_to_one_coin assert_equal([10], make_change(10, [10, 7, 1])) assert_equal([7], make_change(7, [10, 7, 1])) end def test_two_middles assert_equal([7, 7], make_change(14, [10, 7, 1])) end end For now: 3 tests, 3 assertions, 3 failures, 0 errors :-( It's not really surprising, since I still have an empty method :-) Jesus.