diff options
author | NARUSE, Yui <naruse@airemix.jp> | 2019-11-11 17:37:21 +0900 |
---|---|---|
committer | NARUSE, Yui <naruse@airemix.jp> | 2019-11-11 17:37:21 +0900 |
commit | fd69f82675bf93a848e5aa58d117bf8bbf604188 (patch) | |
tree | 715969bdeda865555857a5d2336bfce42a5e9898 /test/ruby | |
parent | ba5b51ca5968314f5ca92fee0afaea44a78eb0b1 (diff) |
Revert "Warn EOF char in comment"
This reverts commit 69ec3f70fab0c1c537c68fb135cc315181b1d750.
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_parse.rb | 9 | ||||
-rw-r--r-- | test/ruby/test_syntax.rb | 6 |
2 files changed, 0 insertions, 15 deletions
diff --git a/test/ruby/test_parse.rb b/test/ruby/test_parse.rb index 17a0c8a077..2622ec529c 100644 --- a/test/ruby/test_parse.rb +++ b/test/ruby/test_parse.rb @@ -720,15 +720,6 @@ x = __ENCODING__ assert_syntax_error("=begin", error) end - def test_embedded_rd_warning - [["\0", "\\0"], ["\C-d", "^D"], ["\C-z", "^Z"]].each do |eof, 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")} - end - end - def test_float assert_equal(1.0/0, eval("1e10000")) assert_syntax_error('1_E', /trailing `_'/) diff --git a/test/ruby/test_syntax.rb b/test/ruby/test_syntax.rb index d0748e7028..5fb4dfa64f 100644 --- a/test/ruby/test_syntax.rb +++ b/test/ruby/test_syntax.rb @@ -943,12 +943,6 @@ eom end end - def test_warning_for_eof_in_comment - 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 msg = /unexpected fraction/ assert_syntax_error("0x0.0", msg) |