1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
yugui 2009-11-26 12:18:22 +00:00
parent 2c3a48614a
commit cdecafff8d
2 changed files with 15 additions and 0 deletions

View file

@ -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.

10
test/test_mathn.rb Normal file
View file

@ -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