diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-04-27 21:09:46 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-04-27 21:09:46 +0000 |
commit | 2f40495328954002d747048e77446325e62b8403 (patch) | |
tree | dc94556dc41183b829e27da01dda0815c9e06445 /test | |
parent | 430e0ce4913ad868d8c60ba3e5a0936d0f47af72 (diff) | |
download | ruby-2f40495328954002d747048e77446325e62b8403.tar.gz |
Cleaning up syntax warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27520 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_rubyoptions.rb | 2 | ||||
-rw-r--r-- | test/test_mathn.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb index 4c49d31d93..3364d1c7be 100644 --- a/test/ruby/test_rubyoptions.rb +++ b/test/ruby/test_rubyoptions.rb @@ -182,7 +182,7 @@ class TestRubyOptions < Test::Unit::TestCase end def test_syntax_check - assert_in_out_err(%w(-c -e 1+1), "", ["Syntax OK"], []) + assert_in_out_err(%w(-c -e a=1+1), "", ["Syntax OK"], []) end def test_invalid_option diff --git a/test/test_mathn.rb b/test/test_mathn.rb index 7083568525..d36985378b 100644 --- a/test/test_mathn.rb +++ b/test/test_mathn.rb @@ -4,7 +4,7 @@ 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]' + assert_in_out_err ['-r', 'mathn', '-e', 'a=1**2'], "", [], [], '[ruby-core:25740]' + assert_in_out_err ['-r', 'mathn', '-e', 'a=(1<<126)**2'], "", [], [], '[ruby-core:25740]' end end |