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 | 9f143dc39857e68f8f1f07393e0202a118e1dee6 (patch) | |
| tree | 047d494553e8291fd6b064b75bc6978fa1142330 | |
| parent | c461a3ffa3906e624cd1f10f91a646fc82ff70c3 (diff) | |
| download | ruby-9f143dc39857e68f8f1f07393e0202a118e1dee6.tar.gz ruby-9f143dc39857e68f8f1f07393e0202a118e1dee6.tar.xz ruby-9f143dc39857e68f8f1f07393e0202a118e1dee6.zip | |
* test/test_mathn.rb (TestMathn): new test case.
test for r25067.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25935 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | test/test_mathn.rb | 10 |
2 files changed, 15 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Thu Nov 26 21:13:36 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp> + + * test/test_mathn.rb (TestMathn): new test case. + test for r25067. + Thu Nov 26 21:11:23 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp> * test/openssl/test_config.rb (OpenSSL::TestConfig): new test case. diff --git a/test/test_mathn.rb b/test/test_mathn.rb new file mode 100644 index 000000000..d0bf03760 --- /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 |
