Commit 3bec8b33 authored by Daniel Bovensiepen's avatar Daniel Bovensiepen

Add Tests for Numeric

parent 241d3f7e
##
# Numeric ISO Test
assert('Numeric', '15.2.7') do
Numeric.class == Class
end
assert('Numeric#+@', '15.2.7.4.1') do
+1 == +1
end
assert('Numeric#-@', '15.2.7.4.2') do
-1 == -1
end
assert('Numeric#abs', '15.2.7.4.3') do
1.abs == 1 and -1.abs == 1.0
end
# Not ISO specified
assert('Numeric#**') do
2.0**3 == 8.0
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment