class TestData::TestCalc::TestMethod
Public Instance Methods
data_test_plus()
click to toggle source
# File test-unit-3.3.4/test/test-data.rb, line 96 def data_test_plus { "positive positive" => {:expected => 4, :augend => 3, :addend => 1}, "positive negative" => {:expected => -1, :augend => 1, :addend => -2}, } end
test_plus(data)
click to toggle source
# File test-unit-3.3.4/test/test-data.rb, line 103 def test_plus(data) assert_equal(data[:expected], @calc.plus(data[:augend], data[:addend])) end