diff options
| author | Peter Zhu <peter@peterzhu.ca> | 2024-01-26 15:18:21 -0500 |
|---|---|---|
| committer | Kevin Newton <kddnewton@gmail.com> | 2024-01-29 13:56:54 -0500 |
| commit | f634c7a268a175a917bdb8542b4495219196a0e2 (patch) | |
| tree | 1f16eadb54ab7b927db902113dc9233cc6aa6361 /test | |
| parent | d39d9e066fb55694abf007da86f658c6c4855a89 (diff) | |
[PRISM] Support UTF-8 symbols
Fixes ruby/prism#2242.
Diffstat (limited to 'test')
| -rw-r--r-- | test/ruby/test_compile_prism.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/ruby/test_compile_prism.rb b/test/ruby/test_compile_prism.rb index 93dcd42450..075dffc1b4 100644 --- a/test/ruby/test_compile_prism.rb +++ b/test/ruby/test_compile_prism.rb @@ -779,6 +779,12 @@ module Prism def test_SymbolNode assert_prism_eval(":pit") + + # Test UTF-8 symbol in a US-ASCII file + assert_prism_eval(<<~'RUBY', raw: true) + # -*- coding: us-ascii -*- + :"\u{e9}" + RUBY end def test_XStringNode |
