diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-10-26 18:00:24 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-26 18:00:24 +0900 |
commit | 52c630da004d9273e8e5fc91c6304e9eed902566 (patch) | |
tree | 8414c98aa099355174ca6525757128d560ce5f8a /test/ripper | |
parent | cffdacb15a363321e1c1879aa7d94924acafd1cf (diff) |
Assoc pattern matching (#3703)
[Feature #17260] One-line pattern matching using tASSOC
R-assignment is rejected instead.
Notes
Notes:
Merged-By: nobu <nobu@ruby-lang.org>
Diffstat (limited to 'test/ripper')
-rw-r--r-- | test/ripper/test_sexp.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ripper/test_sexp.rb b/test/ripper/test_sexp.rb index 47339ba496..87b505a69c 100644 --- a/test/ripper/test_sexp.rb +++ b/test/ripper/test_sexp.rb @@ -412,7 +412,7 @@ eot [:@int, "0", [1, 5]], [:in, [:aryptn, nil, nil, nil, nil], [[:void_stmt]], nil]], - [__LINE__, %q{ 0 in [*, a, *] }] => + [__LINE__, %q{ 0 => [*, a, *] }] => [:case, [:@int, "0", [1, 0]], [:in, @@ -424,7 +424,7 @@ eot nil, nil]], - [__LINE__, %q{ 0 in [*a, b, *c] }] => + [__LINE__, %q{ 0 => [*a, b, *c] }] => [:case, [:@int, "0", [1, 0]], [:in, @@ -436,7 +436,7 @@ eot nil, nil]], - [__LINE__, %q{ 0 in A(*a, b, c, *d) }] => + [__LINE__, %q{ 0 => A(*a, b, c, *d) }] => [:case, [:@int, "0", [1, 0]], [:in, |