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
Родитель e7d76e3f5a
Коммит 01efa5d912
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

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