class TestSubtracter

Public Instance Methods

setup() click to toggle source
# File test-unit-3.3.4/sample/test_subtracter.rb, line 9
def setup
  @subtracter = Subtracter.new(5)
end
teardown() click to toggle source
# File test-unit-3.3.4/sample/test_subtracter.rb, line 17
def teardown
  @subtracter = nil
end
test_subtract() click to toggle source
# File test-unit-3.3.4/sample/test_subtracter.rb, line 13
def test_subtract
  assert_equal(3, @subtracter.subtract(2), "Should have subtracted correctly")
end