Sha256: 67732f7f3e45de3f375bbd799dc365cfbf163923a47ef9c53c42e05f2c7b85fb

Contents?: true

Size: 431 Bytes

Versions: 103

Compression:

Stored size: 431 Bytes

Contents

# Author:: Nathaniel Talbott.
# Copyright:: Copyright (c) 2000-2002 Nathaniel Talbott. All rights reserved.
# License:: Ruby license.

require 'test/unit'
require 'subtracter'

class TestSubtracter < Test::Unit::TestCase
  def setup
    @subtracter = Subtracter.new(5)
  end

  def test_subtract
    assert_equal(3, @subtracter.subtract(2), "Should have subtracted correctly")
  end

  def teardown
    @subtracter = nil
  end
end

Version data entries

103 entries across 87 versions & 9 rubygems

Version Path
activeldap-1.2.1 test-unit/sample/test_subtracter.rb
test-unit-2.0.5 sample/test_subtracter.rb
test-unit-2.0.4 sample/test_subtracter.rb