This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
require 'facets/math/abs'
|
||||
|
||||
test_case Math do
|
||||
|
||||
class_method :abs do
|
||||
test do
|
||||
Math.abs(-3.1).assert == 3.1
|
||||
Math.abs( 0.0).assert == 0.0
|
||||
Math.abs( 3.1).assert == 3.1
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user