Tc Simple Number

Question

ADDQUESTION

Solution

require "simpleNumber"
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))
    end
end
Run this
Comments by Disqus