diff options
| author | Kevin Newton <kddnewton@gmail.com> | 2024-02-18 15:14:46 -0500 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2024-02-18 20:57:13 +0000 |
| commit | 792804e32f7aaa1008acd01068df3c0b85cd8ffe (patch) | |
| tree | a3a60adedc5f09c4875e630e7169fa2ec25b9dc3 /test/prism | |
| parent | 07c774e85cf0a3352c045ec3ae83db1215962997 (diff) | |
[ruby/prism] Split up comments between leading and trailing
Also make them lazy to allocate the array, and also expose ParseResult#encoding.
https://github.com/ruby/prism/commit/08ec7683ae
Diffstat (limited to 'test/prism')
| -rw-r--r-- | test/prism/magic_comment_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/prism/magic_comment_test.rb b/test/prism/magic_comment_test.rb index 812109f2bb..5e232c2d00 100644 --- a/test/prism/magic_comment_test.rb +++ b/test/prism/magic_comment_test.rb @@ -30,7 +30,7 @@ module Prism def assert_magic_comment(example) expected = Ripper.new(example).tap(&:parse).encoding - actual = Prism.parse(example).source.source.encoding + actual = Prism.parse(example).encoding assert_equal expected, actual end end |
