From 15c77ce9391193e97e3a978da07e0f618d01433e Mon Sep 17 00:00:00 2001 From: Protesilaos Date: Fri, 1 May 2026 17:44:49 +0300 Subject: Update the test for modus-themes-wcag-formula I prefer to have an error if the wrong colour is provided. --- tests/modus-themes-test.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/modus-themes-test.el b/tests/modus-themes-test.el index b4120e7..9f2d409 100644 --- a/tests/modus-themes-test.el +++ b/tests/modus-themes-test.el @@ -95,7 +95,7 @@ Else provide a generic snippet of text." Also see `modus-themes-test--modus-themes--hex-to-rgb'." (should (= (modus-themes-wcag-formula "#ffffff") 1.0)) (should (= (modus-themes-wcag-formula "#000000") 0.0)) - (should-not (modus-themes-wcag-formula "#00000"))) + (should-error (modus-themes-wcag-formula "#00000"))) (mtt-define-test modus-themes-contrast "Test that `modus-themes-contrast' works as intended. -- cgit v1.0