Skip to content

Commit

Permalink
move color.lua to apca.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
theJian committed Mar 19, 2024
1 parent 16f7143 commit db558e2
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion test/apca_spec.lua
Original file line number Diff line number Diff line change
@@ -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' }

Expand Down
4 changes: 4 additions & 0 deletions test/de00_spec.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-- local srgb2xyz = require('color').srgb2xyz
-- local color2rgb = require('color').color2rgb

-- print(vim.inspect(color2rgb('#FFFF')))
2 changes: 1 addition & 1 deletion test/highlights_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
2 changes: 1 addition & 1 deletion test/test.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit db558e2

Please sign in to comment.