summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorKoichi ITO <koic.ito@gmail.com>2024-03-13 00:25:10 +0900
committergit <svn-admin@ruby-lang.org>2024-03-12 17:20:41 +0000
commita17a33b38e994564268d0fc0642cd8b569dd65ce (patch)
treebac929cae2e5fefb0281e847e93a917209859aa0 /test
parent1e886c040aeb225978b139a5b31da178dadd799c (diff)
[ruby/prism] Follow ruby/prism#2581
Due to ruby/prism#2581, the test case for non_alphanumeric_methods.txt has also been restored. It also solved issues with `def self.`' not limited to constants for `tBACK_REF2` token. ```console $ bundle exec ruby -Ilib -rprism -rprism/translation/parser33 -ve \ 'buf = Parser::Source::Buffer.new("example.rb"); buf.source = "def self.`; end"; p Prism::Translation::Parser33.new.tokenize(buf)[2]' ruby 3.3.0 (2023-12-25 revision https://github.com/ruby/prism/commit/5124f9ac75) [x86_64-darwin22] [[:kDEF, ["def", #<Parser::Source::Range example.rb 0...3>]], [:kSELF, ["self", #<Parser::Source::Range example.rb 4...8>]], [:tDOT, [".", #<Parser::Source::Range example.rb 8...9>]], [:tBACK_REF2, ["`", #<Parser::Source::Range example.rb 9...10>]], [:tSEMI, [";", #<Parser::Source::Range example.rb 10...11>]], [:kEND, ["end", #<Parser::Source::Range example.rb 12...15>]]] ``` https://github.com/ruby/prism/commit/f814db8ada
Diffstat (limited to 'test')
-rw-r--r--test/prism/parser_test.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/test/prism/parser_test.rb b/test/prism/parser_test.rb
index 480a31f681..60fe0e0f47 100644
--- a/test/prism/parser_test.rb
+++ b/test/prism/parser_test.rb
@@ -76,7 +76,6 @@ module Prism
"heredocs_leading_whitespace.txt",
"heredocs_nested.txt",
"indented_file_end.txt",
- "non_alphanumeric_methods.txt",
"strings.txt",
"xstring.txt"
]