Sha256: e907dc55c5cb538c764c9d42a226ba05cca9b0fff86f16e6099229e82adfdddd

Contents?: true

Size: 428 Bytes

Versions: 39

Compression:

Stored size: 428 Bytes

Contents

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

require 'test/unit'
require 'subtracter'

class TC_Subtracter < 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

39 entries across 39 versions & 9 rubygems

Version Path
ruby-compiler-0.1.1 vendor/ruby/sample/testunit/tc_subtracter.rb
radiant-1.0.0 ruby-debug/ruby/1.8/gems/test-unit-1.2.3/sample/tc_subtracter.rb
cairo-1.8.5-x86-mingw32 test-unit/sample/tc_subtracter.rb
cairo-1.8.5 test-unit/sample/tc_subtracter.rb
cairo-1.8.4 test-unit/sample/tc_subtracter.rb
cairo-1.8.4-x86-mingw32 test-unit/sample/tc_subtracter.rb
cairo-1.8.3-x86-mingw32 test-unit/sample/tc_subtracter.rb
cairo-1.8.3 test-unit/sample/tc_subtracter.rb
cairo-1.8.1-x86-mswin32 test-unit/sample/tc_subtracter.rb
cairo-1.8.1 test-unit/sample/tc_subtracter.rb
groonga-0.0.7 test-unit/sample/tc_subtracter.rb
activegroonga-0.0.7 test-unit/sample/tc_subtracter.rb
activesambaldap-0.0.8 test-unit/sample/tc_subtracter.rb
activeldap-1.2.0 test-unit/sample/tc_subtracter.rb
ActiveSambaLdap-0.0.7 test-unit/sample/tc_subtracter.rb
test-unit-2.0.3 sample/tc_subtracter.rb
groonga-0.0.3 test-unit/sample/tc_subtracter.rb
groonga-0.0.4 test-unit/sample/tc_subtracter.rb
groonga-0.0.5 test-unit/sample/tc_subtracter.rb
groonga-0.0.6 test-unit/sample/tc_subtracter.rb