ruby-changes:61921
From: Nobuyoshi <ko1@a...>
Date: Wed, 24 Jun 2020 20:01:17 +0900 (JST)
Subject: [ruby-changes:61921] 7f29e34f35 (master): [ripper] fail unless got warning as expected
https://git.ruby-lang.org/ruby.git/commit/?id=7f29e34f35 From 7f29e34f35d63f0eda0f9adec12d5ec766c1b1b1 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Wed, 24 Jun 2020 19:50:51 +0900 Subject: [ripper] fail unless got warning as expected diff --git a/test/ripper/test_parser_events.rb b/test/ripper/test_parser_events.rb index d61dba3..87bd0d4 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 https://github.com/ruby/ruby/blob/trunk/test/ripper/test_parser_events.rb#L27 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 -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/