summaryrefslogtreecommitdiff
path: root/test/ruby/test_parse.rb
diff options
context:
space:
mode:
authorNARUSE, Yui <naruse@airemix.jp>2019-11-11 17:37:14 +0900
committerNARUSE, Yui <naruse@airemix.jp>2019-11-11 17:37:14 +0900
commitba5b51ca5968314f5ca92fee0afaea44a78eb0b1 (patch)
treebd5b89d0e8302449d8aa2ab77f0c885a7ce32982 /test/ruby/test_parse.rb
parent7d463e360b9c4718b17378eb52783116a01b884b (diff)
Revert "Elaborated EOF char message a little"
This reverts commit 6eaac7cfac668d6669be694fd7b723c4982ed218.
Diffstat (limited to 'test/ruby/test_parse.rb')
-rw-r--r--test/ruby/test_parse.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_parse.rb b/test/ruby/test_parse.rb
index 07d4151e5a..17a0c8a077 100644
--- a/test/ruby/test_parse.rb
+++ b/test/ruby/test_parse.rb
@@ -722,7 +722,7 @@ x = __ENCODING__
def test_embedded_rd_warning
[["\0", "\\0"], ["\C-d", "^D"], ["\C-z", "^Z"]].each do |eof, mesg|
- mesg = /encountered EOF char\(#{Regexp.quote(mesg)}\)/
+ mesg = /encountered #{Regexp.quote(mesg)}/
assert_warning(mesg) {eval("=begin\n#{eof}\n=end")}
assert_warning(mesg) {eval("=begin#{eof}\n=end")}
assert_warning(mesg) {eval("=begin\n=end#{eof}\n")}