Sha256: fb64f763c459cd1daf3f2d82bb5d80c71e02ee071a75f38de4d2ffa91daf10c9
Contents?: true
Size: 422 Bytes
Versions: 2
Compression:
Stored size: 422 Bytes
Contents
require 'minitest/autorun' require 'a1412tk_bmi' class A1412tkBmiTest < Minitest::Test def test_calc assert_equal 21.6, A1412tkBmi.calc(180, 70) end def test_calc_float_height assert_equal 21.5, A1412tkBmi.calc(180.4, 70) end def test_calc_float_weight assert_equal 21.8, A1412tkBmi.calc(180, 70.6) end def test_calc_float_both assert_equal 21.7, A1412tkBmi.calc(180.4, 70.6) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
a1412tk_bmi-0.0.3 | test/test_a1412tk_bmi.rb |
a1412tk_bmi-0.0.2 | test/test_a1412tk_bmi.rb |