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.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/t/float.rb b/test/t/float.rb
index fc87a5b22..5c5245c73 100644
--- a/test/t/float.rb
+++ b/test/t/float.rb
@@ -5,6 +5,10 @@ assert('Float', '15.2.9') do
Float.class == Class
end
+assert('Float superclass', '15.2.9.2') do
+ Float.superclass == Numeric
+end
+
assert('Float#+', '15.2.9.3.1') do
a = 3.123456788 + 0.000000001
b = 3.123456789 + 1