ruby/test/prism
Earlopain a04555c8ab [ruby/prism] Be more defensive in the parser translator lexer
Generally I have been good about safely accessing the tokens but failed
to properly guard against no tokens in places
where it could theoretically happen through invalid syntax.

I added a test case for one occurance, other changes are theoretical only.

4a3866af19
2025-08-14 15:42:33 +00:00
..
api [ruby/prism] Support forwarding flags on scopes 2025-01-14 20:31:38 +00:00
encoding [ruby/prism] Frozen strings in the AST 2025-01-12 18:41:42 +00:00
errors [ruby/prism] Improve error handling for missing parentheses after 'not' in command calls 2025-08-05 13:58:09 -04:00
fixtures [ruby/prism] Add it read and assignment test 2025-08-05 13:58:09 -04:00
result Interpolated strings must not be frozen 2025-07-22 08:10:55 -07:00
ruby [ruby/prism] Be more defensive in the parser translator lexer 2025-08-14 15:42:33 +00:00
bom_test.rb [ruby/prism] Tests overhaul 2024-05-30 15:18:20 -04:00
errors_test.rb [ruby/prism] No writing to numbered parameters 2025-02-13 20:04:02 +00:00
fixtures_test.rb [ruby/prism] Import code samples for Ruby 3.3 from the parser gem 2025-01-11 19:09:05 -05:00
fuzzer_test.rb [ruby/prism] Tests overhaul 2024-05-30 15:18:20 -04:00
heredoc_dedent_test.rb [ruby/prism] Tests overhaul 2024-05-30 15:18:20 -04:00
lex_test.rb [ruby/prism] [DOC] Fix a typo in comment 2025-06-17 11:18:05 +00:00
library_symbols_test.rb [ruby/prism] Tests overhaul 2024-05-30 15:18:20 -04:00
locals_test.rb [ruby/prism] Fix up locals test with it parameters 2025-02-14 17:32:58 +00:00
magic_comment_test.rb [ruby/prism] Handle single global variable character name 2024-10-03 17:43:11 +00:00
newline_offsets_test.rb [ruby/prism] Tests overhaul 2024-05-30 15:18:20 -04:00
newline_test.rb [ruby/prism] Move Node#type and Node::type documentation 2024-07-11 14:25:54 -04:00
onigmo_test.rb [ruby/prism] Parse all regular expressions 2024-06-05 14:40:03 -04:00
percent_delimiter_string_test.rb [ruby/prism] Decode %r like % strings 2024-12-12 00:42:44 +00:00
ractor_test.rb [ruby/prism] Handle new ractor stuff 2025-08-05 13:58:09 -04:00
regexp_test.rb [ruby/prism] Fix use of uninitialized value when parsing regexp 2024-11-12 14:19:46 +00:00
snippets_test.rb [ruby/prism] Fix binary encoding for the parser translator 2025-01-12 00:49:54 +00:00
test_helper.rb [ruby/prism] Move snapshots 2025-03-27 20:14:36 +00:00
unescape_test.rb [ruby/prism] Turn off unescape tests for Ruby >= 3.4.0 2024-12-27 01:26:54 +00:00
version_test.rb [ruby/prism] Accept version shorthand like 3.4 2024-09-24 13:21:36 +00:00