summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorDaniel Bovensiepen <[email protected]>2012-06-21 15:01:39 +0800
committerDaniel Bovensiepen <[email protected]>2012-06-21 15:01:39 +0800
commit8e89cd456cca0402c639d31031df29fceaa49ef6 (patch)
treed957bc1d250e415b0b2102ac6ea024c121249f4d /test
parent162b3625d0f7ab3cba2163544bf0a2d1256d3000 (diff)
downloadmruby-8e89cd456cca0402c639d31031df29fceaa49ef6.tar.gz
mruby-8e89cd456cca0402c639d31031df29fceaa49ef6.zip
only execute math tests if math feature is activated
Diffstat (limited to 'test')
-rw-r--r--test/t/math.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/t/math.rb b/test/t/math.rb
index d60d80ae7..025551b82 100644
--- a/test/t/math.rb
+++ b/test/t/math.rb
@@ -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