summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-11-19 17:17:00 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-11-19 17:18:27 +0900
commit0b8c73aa65add5c57b46b0cfdf4e661508802172 (patch)
tree495d641ddab0f16bd5ff0efd358c09f10aef7581 /test
parenta5fe08fdd9d11f12a6837291ee588ab933a823b6 (diff)
[ripper] Quoted label without expression must be a local variable
Diffstat (limited to 'test')
-rw-r--r--test/ripper/test_sexp.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/ripper/test_sexp.rb b/test/ripper/test_sexp.rb
index d6c7d60f06..9b3a99e522 100644
--- a/test/ripper/test_sexp.rb
+++ b/test/ripper/test_sexp.rb
@@ -435,6 +435,9 @@ eot
[__LINE__, %q{ case 0; in a?:; end }] =>
nil,
+
+ [__LINE__, %q{ case 0; in "A":; end }] =>
+ nil,
}
pattern_matching_data.each do |(i, src), expected|
define_method(:"test_pattern_matching_#{i}") do