mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 21:14:23 +02:00
[ripper] fail unless got warning as expected
This commit is contained in:
parent
50c63ab38d
commit
7f29e34f35
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue