Skip to content

Instantly share code, notes, and snippets.

@trepidity
Last active December 28, 2015 10:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trepidity/7490675 to your computer and use it in GitHub Desktop.
Save trepidity/7490675 to your computer and use it in GitHub Desktop.
require_relative "simple_number"
require "test/unit"
class TestSimpleNumber < Test::Unit::TestCase
def test_simple
assert_equal(4, SimpleNumber.new(2).add(2) )
assert_equal(6, SimpleNumber.new(2).multiply(3) )
assert_equal(3, SimpleNumber.new(6).devide(2) )
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment