3 class TestPrecision < Test::Unit::TestCase
5 assert_same(1, 1.0.prec(Integer))
6 assert_same(1, 1.0.prec_i)
7 assert_same(1, Integer.induced_from(1.0))
11 assert_equal(1.0, 1.prec(Float))
12 assert_equal(1.0, 1.prec_f)
13 assert_equal(1.0, Float.induced_from(1))
18 m.instance_eval { include(Precision) }
19 assert_raise(TypeError) { m.induced_from(0) }