Unit Testing: hard code value : Unit Testing « Unit Test « Ruby
- Ruby
- Unit Test
- Unit Testing
Unit Testing: hard code value
require 'test/unit'
class TestRoman < Test::Unit::TestCase
def test_simple
assert_equal("i", 1.to_s)
assert_equal("ix", 'ix'.to_s)
end
end
Related examples in the same category