mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
only execute math tests if math feature is activated
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
||||
##
|
||||
# Math Test
|
||||
|
||||
if MathEnabled
|
||||
if Object.const_defined?(:Math)
|
||||
assert('Math.sin 0') do
|
||||
check_float(Math.sin(0), 0)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user