mirror of
https://github.com/appgurueu/modlib.git
synced 2024-08-19 21:04:13 +02:00
Fix colorspec test
This commit is contained in:
parent
e0733cc469
commit
f53ea61fbe
2
test.lua
2
test.lua
@ -384,7 +384,7 @@ local function test_from_string(string, number)
|
|||||||
local expected = colorspec.from_number_rgba(number)
|
local expected = colorspec.from_number_rgba(number)
|
||||||
assertdump(table.equals(spec, expected), {expected = expected, actual = spec})
|
assertdump(table.equals(spec, expected), {expected = expected, actual = spec})
|
||||||
end
|
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)
|
assertdump(table.equals(spec, {a = 0xAA, b = 0xBB, g = 0xCC, r = 0xDD}), spec)
|
||||||
test_from_string("aliceblue", 0xf0f8ffff)
|
test_from_string("aliceblue", 0xf0f8ffff)
|
||||||
test_from_string("aliceblue#42", 0xf0f8ff42)
|
test_from_string("aliceblue#42", 0xf0f8ff42)
|
||||||
|
Loading…
Reference in New Issue
Block a user