mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Add missing test for p_var_ref
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e7d76e3f5a
commit
01efa5d912
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue