1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

more tests.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16229 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2008-04-28 05:45:37 +00:00
parent c4eb7b916f
commit 3341152da8

View file

@ -355,6 +355,9 @@ class TestFloat < Test::Unit::TestCase
assert_operator(i, :>, 0)
end
assert_operator(i.abs, :<=, f.abs)
d = f.abs - i.abs
assert_operator(0, :<=, d)
assert_operator(d, :<, 1)
}
end
@ -367,6 +370,9 @@ class TestFloat < Test::Unit::TestCase
assert_operator(i, :>, 0)
end
assert_operator(i, :>=, f)
d = f - i
assert_operator(-1, :<, d)
assert_operator(d, :<=, 0)
}
end
@ -379,6 +385,9 @@ class TestFloat < Test::Unit::TestCase
assert_operator(i, :>, 0)
end
assert_operator(i, :<=, f)
d = f - i
assert_operator(0, :<=, d)
assert_operator(d, :<, 1)
}
end