diff --git a/test/color.lua b/test/apca.lua similarity index 100% rename from test/color.lua rename to test/apca.lua diff --git a/test/apca_spec.lua b/test/apca_spec.lua index c4530af..82af3f5 100644 --- a/test/apca_spec.lua +++ b/test/apca_spec.lua @@ -1,6 +1,6 @@ -- @ref: https://github.com/Myndex/apca-w3/blob/master/test/index.js -local calc_apca = require('color').calc_apca +local calc_apca = require('apca').calc_apca local color = { '#888888', '#FFFFFF', '#000000', '#aaaaaa', '#112233', '#ddeeff', '#112233', '#444444' } diff --git a/test/de00_spec.lua b/test/de00_spec.lua new file mode 100644 index 0000000..ef042b7 --- /dev/null +++ b/test/de00_spec.lua @@ -0,0 +1,4 @@ +-- local srgb2xyz = require('color').srgb2xyz +-- local color2rgb = require('color').color2rgb + +-- print(vim.inspect(color2rgb('#FFFF'))) diff --git a/test/highlights_spec.lua b/test/highlights_spec.lua index 77e5582..c1e18b7 100644 --- a/test/highlights_spec.lua +++ b/test/highlights_spec.lua @@ -34,7 +34,7 @@ -- visible for many users. This minimum level should be avoided for any items -- important to the use, understanding, or interaction of the site. -local calc_apca = require('color').calc_apca +local calc_apca = require('apca').calc_apca local abs = math.abs local IGNORE = { diff --git a/test/test.lua b/test/test.lua index 14975f1..e82598e 100644 --- a/test/test.lua +++ b/test/test.lua @@ -6,7 +6,7 @@ function try(f, catch_f) end try(function() - package.path = package.path .. ';./test/color.lua' + package.path = package.path .. ';./test/?.lua' local cwd = vim.api.nvim_call_function('getcwd', {}) local testdir = cwd .. '/test'