initial commit

This commit is contained in:
2024-08-31 22:36:09 -06:00
commit 61460f0180
18 changed files with 1646 additions and 0 deletions

13
spec/buffer_spec.lua Normal file
View File

@@ -0,0 +1,13 @@
local Buffer = require 'tt.buffer'
local withbuf = require '__tt_test_tools'
describe('Buffer', function()
it('should replace all lines', function()
withbuf({}, function()
local buf = Buffer.new()
buf:all():replace 'bleh'
local actual_lines = vim.api.nvim_buf_get_lines(buf.buf, 0, -1, false)
assert.are.same({ 'bleh' }, actual_lines)
end)
end)
end)