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
test-unit-3.1.3 sample/test_subtracter.rb
test-unit-3.1.2 sample/test_subtracter.rb
test-unit-3.1.1 sample/test_subtracter.rb
test-unit-3.1.0 sample/test_subtracter.rb
test-unit-3.0.9 sample/test_subtracter.rb
test-unit-3.0.8 sample/test_subtracter.rb
test-unit-3.0.7 sample/test_subtracter.rb
test-unit-3.0.6 sample/test_subtracter.rb
test-unit-3.0.5 sample/test_subtracter.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/1.9.1/gems/test-unit-2.4.8/sample/test_subtracter.rb
apl-library-0.0.90 vendor/bundle/ruby/1.9.1/gems/test-unit-2.4.8/sample/test_subtracter.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/2.1.0/gems/test-unit-2.4.8/sample/test_subtracter.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/test-unit-2.4.8/sample/test_subtracter.rb
test-unit-3.0.4 sample/test_subtracter.rb
test-unit-3.0.3 sample/test_subtracter.rb
test-unit-3.0.2 sample/test_subtracter.rb
test-unit-3.0.1 sample/test_subtracter.rb
test-unit-3.0.0 sample/test_subtracter.rb
candlepin-api-0.4.0 bundle/ruby/gems/test-unit-2.5.0/sample/test_subtracter.rb
candlepin-api-0.4.0 bundle/ruby/1.8/gems/test-unit-2.5.0/sample/test_subtracter.rb