diff options
| author | Peter Zhu <peter@peterzhu.ca> | 2024-01-26 16:13:04 -0500 |
|---|---|---|
| committer | Kevin Newton <kddnewton@gmail.com> | 2024-01-29 13:56:54 -0500 |
| commit | 3d3d9e8397a3a84075692b6411647b031a19bf5d (patch) | |
| tree | 5468f4a989c577ba2f233a6486bebe7a8ffe49d4 /test/ruby | |
| parent | d980c89273e4f2910042fd5e010f182766f056ac (diff) | |
[PRISM] Support US-ASCII symbols
Diffstat (limited to 'test/ruby')
| -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 6033c44d21..be8d8650a7 100644 --- a/test/ruby/test_compile_prism.rb +++ b/test/ruby/test_compile_prism.rb @@ -791,6 +791,12 @@ module Prism # -*- coding: us-ascii -*- :"\xff" RUBY + + # Test US-ASCII symbol in a ASCII-8BIT file + assert_prism_eval(<<~'RUBY', raw: true) + # -*- coding: ascii-8bit -*- + :a + RUBY end def test_XStringNode |
