diff options
author | ktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-04-21 03:11:38 +0000 |
---|---|---|
committer | ktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-04-21 03:11:38 +0000 |
commit | 01efa5d912f47829eb7fbb472d899ed293105d25 (patch) | |
tree | bf373c1166d82a425d4bd5e36ce8d45bb5090db9 | |
parent | e7d76e3f5aa78f81e38de5e4ef16cffe7ad7a0d5 (diff) | |
download | ruby-01efa5d912f47829eb7fbb472d899ed293105d25.tar.gz |
Add missing test for p_var_ref
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | test/ruby/test_pattern_matching.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/ruby/test_pattern_matching.rb b/test/ruby/test_pattern_matching.rb index 8e8a7102aa..175b308ce8 100644 --- a/test/ruby/test_pattern_matching.rb +++ b/test/ruby/test_pattern_matching.rb @@ -199,6 +199,12 @@ class TestPatternMatching < Test::Unit::TestCase a == 1 end end + + assert_syntax_error(%q{ + case 0 + in ^a + end + }, /no such local variable/) end def test_literal_value_pattern |