diff options
author | NARUSE, Yui <naruse@airemix.jp> | 2019-11-11 17:37:14 +0900 |
---|---|---|
committer | NARUSE, Yui <naruse@airemix.jp> | 2019-11-11 17:37:14 +0900 |
commit | ba5b51ca5968314f5ca92fee0afaea44a78eb0b1 (patch) | |
tree | bd5b89d0e8302449d8aa2ab77f0c885a7ce32982 /test | |
parent | 7d463e360b9c4718b17378eb52783116a01b884b (diff) |
Revert "Elaborated EOF char message a little"
This reverts commit 6eaac7cfac668d6669be694fd7b723c4982ed218.
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_parse.rb | 2 | ||||
-rw-r--r-- | test/ruby/test_syntax.rb | 6 |
2 files changed, 4 insertions, 4 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")} diff --git a/test/ruby/test_syntax.rb b/test/ruby/test_syntax.rb index dc8a618c4e..d0748e7028 100644 --- a/test/ruby/test_syntax.rb +++ b/test/ruby/test_syntax.rb @@ -944,9 +944,9 @@ eom end def test_warning_for_eof_in_comment - assert_warning(/encountered EOF char\(\\0\)/) {eval("#\0")} - assert_warning(/encountered EOF char\(\^D\)/) {eval("#\C-d")} - assert_warning(/encountered EOF char\(\^Z\)/) {eval("#\C-z")} + assert_warning(/encountered \\0/) {eval("#\0")} + assert_warning(/encountered \^D/) {eval("#\C-d")} + assert_warning(/encountered \^Z/) {eval("#\C-z")} end def test_unexpected_fraction |