Sha256: 1d5d1ba06b7ac374a82f10aeafb791804f81b963af38f1d9db291241820633ae

Contents?: true

Size: 386 Bytes

Versions: 103

Compression:

Stored size: 386 Bytes

Contents

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

require 'test/unit'
require 'adder'

class TestAdder < Test::Unit::TestCase
  def setup
    @adder = Adder.new(5)
  end

  def test_add
    assert_equal(7, @adder.add(2), "Should have added correctly")
  end

  def teardown
    @adder = nil
  end
end

Version data entries

103 entries across 87 versions & 9 rubygems

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