diff options
Diffstat (limited to 'test/ripper/test_scanner_events.rb')
-rw-r--r-- | test/ripper/test_scanner_events.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ripper/test_scanner_events.rb b/test/ripper/test_scanner_events.rb index 1b7b56ebfe..7ae58bbda8 100644 --- a/test/ripper/test_scanner_events.rb +++ b/test/ripper/test_scanner_events.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # # test_scanner_events.rb # @@ -134,7 +134,7 @@ class TestRipper::ScannerEvents < Test::Unit::TestCase end def assert_location(src) - buf = '' + buf = ''.dup Ripper.lex(src).each do |pos, type, tok| line, col = *pos assert_equal buf.count("\n") + 1, line, |