Newer
Older
dotfiles / .config / lite-xl / plugins / gitdiff_highlight / test.lua
@Edoko Edoko on 27 May 302 bytes initial commit
-- this file tests the script
local gitdiff = require "gitdiff"

local input = io.read("*a")
local lines = gitdiff.changed_lines(input) -- test

print("testing first line...")
print(lines[1])
print()
print("testing all lines...")
for i, line in pairs(lines) do
	print("line ".. i .. " - " .. line)
end