зеркало из https://github.com/github/ruby.git
11 строки
374 B
Ruby
11 строки
374 B
Ruby
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', 'a=1**2;!a'], "", [], [], '[ruby-core:25740]'
|
|
assert_in_out_err ['-r', 'mathn', '-e', 'a=(1<<126)**2;!a'], "", [], [], '[ruby-core:25740]'
|
|
end
|
|
end
|