Skip to content

Instantly share code, notes, and snippets.

@JordiCorbilla
Created May 9, 2016 19:54
Show Gist options
  • Save JordiCorbilla/a878333a8b656edc330e76572bbcfd7e to your computer and use it in GitHub Desktop.
Save JordiCorbilla/a878333a8b656edc330e76572bbcfd7e to your computer and use it in GitHub Desktop.
class Calculator
def sum(i,j)
return i+j
end
end
require 'test/unit'
require_relative 'calculator.actions'
class TestCalculator < Test::Unit::TestCase
def SumIntegers
test = Calculator.new
expected = test.sum 3,2
puts expected
assert_equal expected, 5
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment