Fix colorspec test

This commit is contained in:
Lars Mueller 2022-02-28 10:57:10 +01:00
parent e0733cc469
commit f53ea61fbe

@ -384,7 +384,7 @@ local function test_from_string(string, number)
local expected = colorspec.from_number_rgba(number)
assertdump(table.equals(spec, expected), {expected = expected, actual = spec})
end
local spec = colorspec.from_number(0xDDCCBBAA)
local spec = colorspec.from_number_rgba(0xDDCCBBAA)
assertdump(table.equals(spec, {a = 0xAA, b = 0xBB, g = 0xCC, r = 0xDD}), spec)
test_from_string("aliceblue", 0xf0f8ffff)
test_from_string("aliceblue#42", 0xf0f8ff42)