Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 53244de

Browse filesBrowse files
committed
* 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
1 parent 566160b commit 53244de
Copy full SHA for 53244de

File tree

Expand file treeCollapse file tree

2 files changed

+15
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+15
-0
lines changed
Open diff view settings
Collapse file

‎ChangeLog‎

Copy file name to clipboardExpand all lines: ChangeLog
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
Thu Nov 26 21:13:36 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
2+
3+
* test/test_mathn.rb (TestMathn): new test case.
4+
test for r25067.
5+
16
Thu Nov 26 21:11:23 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
27

38
* test/openssl/test_config.rb (OpenSSL::TestConfig): new test case.
Collapse file

‎test/test_mathn.rb‎

Copy file name to clipboard
+10Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
require 'test/unit'
2+
require_relative 'ruby/envutil'
3+
4+
# mathn redefines too much. It must be isolated to child processes.
5+
class TestMathn < Test::Unit::TestCase
6+
def test_power
7+
assert_in_out_err ['-r', 'mathn', '-e', '1**2'], [], [], [], '[ruby-core:25740]'
8+
assert_in_out_err ['-r', 'mathn', '-e', '(1<<126)**2'], [], [], [], '[ruby-core:25740]'
9+
end
10+
end

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.