DEV: Apply syntax_tree formatting to spec/*

This commit is contained in:
David Taylor
2023-01-09 11:18:21 +00:00
parent 0cf6421716
commit cb932d6ee1
907 changed files with 58693 additions and 45909 deletions

View File

@@ -1,9 +1,8 @@
# frozen_string_literal: true
require 'content_buffer'
require "content_buffer"
RSpec.describe ContentBuffer do
it "handles deletion across lines properly" do
c = ContentBuffer.new("a\nbc\nc")
c.apply_transform!(start: { row: 0, col: 0 }, finish: { col: 1, row: 1 }, operation: :delete)
@@ -26,5 +25,4 @@ RSpec.describe ContentBuffer do
c.apply_transform!(start: { row: 0, col: 5 }, operation: :insert, text: "\nworld")
expect(c.to_s).to eq("hello\nworld!")
end
end