diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-06-24 19:50:51 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-06-24 19:52:39 +0900 |
commit | 7f29e34f35d63f0eda0f9adec12d5ec766c1b1b1 (patch) | |
tree | ca332643b6f72ed0a40b0c91bfaf72358479e8e3 | |
parent | 50c63ab38da95d17687d9fe9a74eb6ad79973f64 (diff) | |
download | ruby-7f29e34f35d63f0eda0f9adec12d5ec766c1b1b1.tar.gz |
[ripper] fail unless got warning as expected
-rw-r--r-- | test/ripper/test_parser_events.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ripper/test_parser_events.rb b/test/ripper/test_parser_events.rb index d61dba340d..87bd0d4e0b 100644 --- a/test/ripper/test_parser_events.rb +++ b/test/ripper/test_parser_events.rb @@ -27,10 +27,12 @@ class TestRipper::ParserEvents < Test::Unit::TestCase def warning(str) parse(str, :warning) {|e, *args| return args} + assert(false, "warning expected") end def warn(str) parse(str, :warn) {|e, *args| return args} + assert(false, "warning expected") end def test_program |