1
0
Fork 0
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:
ktsj 2019-04-21 03:11:38 +00:00
parent e7d76e3f5a
commit 01efa5d912

View file

@ -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