summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-22 07:14:12 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-22 07:14:12 +0000
commit17b6be1ddc507c3692f2a1b668ae891decef43c8 (patch)
treeb0a9a6fe2f24a8a5fd779416ba55eb47edbff962 /test
parent17ca870a4dd27d1e8e23d0ca66bbc2306caaa912 (diff)
Moved regexps not to confuse ruby-mode.el
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_exception.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/ruby/test_exception.rb b/test/ruby/test_exception.rb
index 88bd095228..a4a70eb5fc 100644
--- a/test/ruby/test_exception.rb
+++ b/test/ruby/test_exception.rb
@@ -700,7 +700,11 @@ end.join
end
def test_cause_at_end
- assert_in_out_err([], <<-'end;', [], [/-: unexpected return\n/, /.*undefined local variable or method `n'.*\n/])
+ errs = [
+ /-: unexpected return\n/,
+ /.*undefined local variable or method `n'.*\n/,
+ ]
+ assert_in_out_err([], <<-'end;', [], errs)
END{n}; END{return}
end;
end