summaryrefslogtreecommitdiff
path: root/test/ripper
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-25 17:42:59 +0900
commit26625bc33c32e0945bf727234a3ce6da1eb0ddc4 (patch)
treec24312596ae11ba9f000a16bfff573dc4d972d19 /test/ripper
parent86461fc28cd9c05670ece440d337f255b33e6def (diff)
[ripper] Quoted label without expression must be a local variable
The difference from 0b8c73aa65add5c57b46b0cfdf4e661508802172 is to add the result of `string_add` event to marking objects. ```C RNODE($1)->nd_rval = add_mark_object(p, $$); ```
Diffstat (limited to 'test/ripper')
-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