summaryrefslogtreecommitdiffhomepage
path: root/test/t/float.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/t/float.rb')
-rw-r--r--test/t/float.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/t/float.rb b/test/t/float.rb
index 1cbc90532..e2a8a5088 100644
--- a/test/t/float.rb
+++ b/test/t/float.rb
@@ -239,6 +239,11 @@ assert('Float#to_s') do
end
end
+assert('Float#inspect') do
+ assert_equal("-3.25", -3.25.inspect)
+ assert_equal("50.0", 50.0.inspect)
+end
+
assert('Float#eql?') do
assert_operator(5.0, :eql?, 5.0)
assert_not_operator(5.0, :eql?, 5)