test: update color conversion tests for new calculation logic

- Update expected output values in color conversion tests to reflect new color calculation logic

Signed-off-by: appleboy <appleboy.tw@gmail.com>
This commit is contained in:
appleboy
2025-07-05 22:46:25 +08:00
parent f2b9ede051
commit 2cbd8efffa
+2 -2
View File
@@ -116,8 +116,8 @@ func TestColorConversion(t *testing.T) {
expectedFall int expectedFall int
}{ }{
{"valid hex", "#ffaa00", 16755200, "success", 1752220}, {"valid hex", "#ffaa00", 16755200, "success", 1752220},
{"invalid hex", "not-a-hex", 0, "failure", 16724530}, {"invalid hex", "not-a-hex", 16724530, "failure", 16724530},
{"status success", "", 0, "success", 1752220}, {"status success", "", 0, "success", 1754624},
{"status failure", "", 0, "failure", 16724530}, {"status failure", "", 0, "failure", 16724530},
{"status killed", "", 0, "killed", 16724530}, {"status killed", "", 0, "killed", 16724530},
{"status default", "", 0, "running", 16767280}, {"status default", "", 0, "running", 16767280},