class TestPN
Public Instance Methods
setup()
click to toggle source
# File test/test.rb, line 58 def setup @type = "pn" @string = "- + / 18 ^ 3 2 12 13" @array = ['-', '+', '/', 18.0, '**', 3.0, 2.0, 12.0, 13.0] @result = 1 @PN = MathNotation.new(@string, @type) end
test_array_access()
click to toggle source
# File test/test.rb, line 74 def test_array_access assert_equal(@array, @PN.array) end
test_result_access()
click to toggle source
# File test/test.rb, line 78 def test_result_access assert_equal(@result, @PN.result) end
test_string_access()
click to toggle source
# File test/test.rb, line 70 def test_string_access assert_equal(@string, @PN.string) end
test_type_access()
click to toggle source
# File test/test.rb, line 66 def test_type_access assert_equal(@type, @PN.type) end