diff options
Diffstat (limited to 'test/ruby/test_syntax.rb')
-rw-r--r-- | test/ruby/test_syntax.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_syntax.rb b/test/ruby/test_syntax.rb index 49522c42cd..eecc21e710 100644 --- a/test/ruby/test_syntax.rb +++ b/test/ruby/test_syntax.rb @@ -118,7 +118,7 @@ class TestSyntax < Test::Unit::TestCase def test_warn_unreachable assert_warn("test:3: warning: statement not reached\n") do - code = "loop do\n" "break\n" "foo\n" "end" + code = "loop do\nbreak\nfoo\nend" assert_valid_syntax(code, "test") {$VERBOSE = true} end end |