diff options
Diffstat (limited to 'test/prism/parse_test.rb')
-rw-r--r-- | test/prism/parse_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/prism/parse_test.rb b/test/prism/parse_test.rb index afb53e0668..5c66caebb9 100644 --- a/test/prism/parse_test.rb +++ b/test/prism/parse_test.rb @@ -265,7 +265,7 @@ module Prism # Next, assert that the newlines are in the expected places. expected_newlines = [0] source.b.scan("\n") { expected_newlines << $~.offset(0)[0] + 1 } - assert_equal expected_newlines, Debug.newlines(source) + assert_equal expected_newlines, Prism.parse(source).source.offsets if ripper_should_match # Finally, assert that we can lex the source and get the same tokens as |