diff options
Diffstat (limited to 'test/irb/test_context.rb')
-rw-r--r-- | test/irb/test_context.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/irb/test_context.rb b/test/irb/test_context.rb index d58477c84e..075db35d2b 100644 --- a/test/irb/test_context.rb +++ b/test/irb/test_context.rb @@ -63,6 +63,12 @@ module TestIRB assert_not_match(/rescue _\.class/, e.message) end + def test_evaluate_with_onigmo_warning + assert_warning("(irb):1: warning: character class has duplicated range: /[aa]/\n") do + @context.evaluate('/[aa]/', 1) + end + end + def test_eval_input verbose, $VERBOSE = $VERBOSE, nil input = TestInputMethod.new([ |