diff options
-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 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 |