ruby-changes:14121
From: yugui <ko1@a...>
Date: Thu, 26 Nov 2009 21:23:10 +0900 (JST)
Subject: [ruby-changes:14121] Ruby:r25935 (trunk): * test/test_mathn.rb (TestMathn): new test case.
yugui 2009-11-26 21:18:22 +0900 (Thu, 26 Nov 2009) New Revision: 25935 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25935 Log: * test/test_mathn.rb (TestMathn): new test case. test for r25067. Added files: trunk/test/test_mathn.rb Modified files: trunk/ChangeLog Index: ChangeLog =================================================================== --- ChangeLog (revision 25934) +++ ChangeLog (revision 25935) @@ -1,3 +1,8 @@ +Thu Nov 26 21:13:36 2009 Yuki Sonoda (Yugui) <yugui@y...> + + * test/test_mathn.rb (TestMathn): new test case. + test for r25067. + Thu Nov 26 21:11:23 2009 Yuki Sonoda (Yugui) <yugui@y...> * test/openssl/test_config.rb (OpenSSL::TestConfig): new test case. Index: test/test_mathn.rb =================================================================== --- test/test_mathn.rb (revision 0) +++ test/test_mathn.rb (revision 25935) @@ -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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/