diff options
author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-11-26 12:18:22 +0000 |
---|---|---|
committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-11-26 12:18:22 +0000 |
commit | cdecafff8dde562debf8cf8a8f9e0e0a9752b6f8 (patch) | |
tree | 047d494553e8291fd6b064b75bc6978fa1142330 /test/test_mathn.rb | |
parent | 2c3a48614a49e5021cbe5cccff00e6464a1d4e21 (diff) |
* test/test_mathn.rb (TestMathn): new test case.
test for r25067.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25935 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/test_mathn.rb')
-rw-r--r-- | test/test_mathn.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/test_mathn.rb b/test/test_mathn.rb new file mode 100644 index 0000000000..d0bf03760d --- /dev/null +++ b/test/test_mathn.rb @@ -0,0 +1,10 @@ +require 'test/unit' +require_relative 'ruby/envutil' + +# mathn redefines too much. It must be isolated to child processes. +class TestMathn < Test::Unit::TestCase + def test_power + assert_in_out_err ['-r', 'mathn', '-e', '1**2'], [], [], [], '[ruby-core:25740]' + assert_in_out_err ['-r', 'mathn', '-e', '(1<<126)**2'], [], [], [], '[ruby-core:25740]' + end +end |