require 'test/unit' require 'ez_temp_conversion' class EzTempConversionTest < Test::Unit::TestCase def test_32_f_to_c_should_be_zero assert_equal(0.0, 32.f_to_c) end def test_0_c_to_f_should_be_32 assert_equal(32.0, 0.c_to_f) end def test_37_c_to_f_should_be_98_point_6 assert_equal(98.6, 37.c_to_f) end def test_98_point_6_f_to_c_should_be_37 assert_equal(37.0, 98.6.f_to_c) end end