diff options
author | Kevin Newton <[email protected]> | 2024-06-12 09:44:28 -0400 |
---|---|---|
committer | Kevin Newton <[email protected]> | 2024-06-18 21:18:39 -0400 |
commit | 24f48382bc3ab62ca0979f1a6879f0d82134abfe (patch) | |
tree | 23c9b01c864b6200ec21674872dca2e5686d98ce /test | |
parent | c93b70cfdde962c24d99253ecf1e2c256d695f67 (diff) |
[ruby/prism] (parser) Fix up tokens for empty symbol
https://github.com/ruby/prism/commit/5985ab7687
Diffstat (limited to 'test')
-rw-r--r-- | test/prism/ruby/parser_test.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/prism/ruby/parser_test.rb b/test/prism/ruby/parser_test.rb index a5cf919ae5..879e866ef5 100644 --- a/test/prism/ruby/parser_test.rb +++ b/test/prism/ruby/parser_test.rb @@ -144,7 +144,6 @@ module Prism "seattlerb/str_evstr_escape.txt", "seattlerb/str_newline_hash_line_number.txt", "seattlerb/str_single_newline.txt", - "seattlerb/symbol_empty.txt", "seattlerb/symbols_empty_space.txt", "seattlerb/TestRubyParserShared.txt", "unparser/corpus/literal/assignment.txt", @@ -247,7 +246,7 @@ module Prism while expected_index < expected_tokens.length expected_token = expected_tokens[expected_index] - actual_token = actual_tokens[actual_index] + actual_token = actual_tokens.fetch(actual_index, []) expected_index += 1 actual_index += 1 |