Shawn LeMaster
50c42fe90d
Add more mappings to modus-themes-generate-palette + test
2026-06-27 17:42:40 -05:00
Shawn LeMaster
c981ca60ae
Add complete-palette-mappings test
2026-06-27 17:24:11 -05:00
Protesilaos
15c77ce939
Update the test for modus-themes-wcag-formula
...
I prefer to have an error if the wrong colour is provided.
2026-05-01 17:44:49 +03:00
Protesilaos
0775c7ee92
Update test for modus-themes--hex-or-name-to-rgb
...
It is called differently now and also throws an error if it must.
2026-05-01 17:44:15 +03:00
Protesilaos
c9c0974747
Write test for modus-themes-color-hex-p
2026-05-01 17:43:28 +03:00
Protesilaos
f71db69bad
Use "Protesilaos" instead of "Protesilaos Stavrou"
...
As I announced here: <https://protesilaos.com/news/2026-04-21-omitting-the-surname/ >.
2026-04-24 13:27:23 +03:00
Protesilaos Stavrou
ea87862946
Add a comment about the use of format in two tests
2026-04-12 18:46:25 +03:00
Protesilaos Stavrou
4ca21529ae
Make stylistic tweaks to modus-themes-test--define-test (mtt-define-test)
2026-04-10 21:39:21 +03:00
Protesilaos Stavrou
704edc5af3
Update the "Author:" field in modus-themes-test.el
2026-04-10 21:33:18 +03:00
Benjamin Kästner
f90869584a
Remove explicit optional DOCSTRING `nil's
...
The explicit `nil's actually don't break the previously introduced
functionality. As (stringp nil) is `nil', it was interpreted as a
missing DOCSTRING.
However, they now contain only noise.
2026-04-10 18:29:24 +02:00
Benjamin Kästner
742054c713
Make DOCSTRING in mtt-define-test optional
...
This commit removes mtt-define-test's explicit DOCSTRING argument and
instead inspects the first entry of the given ARGS:
- if (car args) is a string, it is interpreted as a DOCSTRING
- otherwise, it is considered to be part of the test's BODY
Examples:
;; No docstring
(macroexpand-1
'(mtt-define-test trivial-check
(should (= 1 1))))
=> (ert-deftest mtt-trivial-check nil "Test that `trivial-check' does the right thing." (should (= 1 1)))
;; With docstring
(macroexpand-1
'(mtt-define-test trivial-check-with-docstring
"This tests a trivial thing."
(should (= 1 1))))
=> (ert-deftest mtt-trivial-check-with-docstring nil "This tests a trivial thing." (should (= 1 1)))
mtt-define-test's own docstring follows the usual \(fn ARGLIST)
feature used for macros, see "(elisp) Function Documentation".
2026-04-10 18:29:24 +02:00
Protesilaos Stavrou
8a8ed85ae7
Make stylistic change to the test of modus-themes-sort
2026-04-10 16:26:12 +03:00
Protesilaos Stavrou
d2f64a8a4f
Write test for modus-themes-sort
2026-04-10 16:24:52 +03:00
Protesilaos Stavrou
f430f287bd
Write macro to express tests how I want them
2026-04-10 16:24:38 +03:00
Protesilaos Stavrou
ec4c79c472
Write test for modus-themes--background-p
2026-04-10 15:59:50 +03:00
Protesilaos Stavrou
087b419503
Write a test for modus-themes--belongs-to-family-p
2026-04-10 15:57:36 +03:00
Protesilaos Stavrou
d76bbf9865
Write test for modus-themes--belongs-to-family-p
2026-04-10 15:55:31 +03:00
Protesilaos Stavrou
dce91510b3
Write test for modus-themes-activate
2026-04-10 15:37:29 +03:00
Protesilaos Stavrou
df74b73a60
Write a test for modus-themes--color-eight-to-six-digits and use its name instead of the older symbol
2026-04-10 14:58:24 +03:00
Protesilaos Stavrou
282dbd66b5
Improve modus-themes-adjust-value and write a test for it
2026-04-10 14:58:06 +03:00
Protesilaos Stavrou
c63be80d3b
Refine modus-themes-contrast and write a test for it
2026-04-10 14:48:51 +03:00
Protesilaos Stavrou
953ec93841
Refine modus-themes-wcag-formula and write a test for it
2026-04-10 14:48:14 +03:00
Protesilaos Stavrou
f062c8d99a
Write a test for modus-themes--hex-to-rgb
2026-04-10 14:21:18 +03:00
Protesilaos Stavrou
6fa9f61f48
Fix current year in modus-themes-test.el
2026-04-10 12:55:59 +03:00
Protesilaos Stavrou
dbd67e1140
Update the modus-themes-test.el copyright years
2026-04-10 12:49:08 +03:00
Protesilaos Stavrou
0ace30e471
Write tests for dark colour and readable colour
2026-01-31 10:14:40 +02:00
Protesilaos Stavrou
b633768b7c
Rewrite mtt-inheritance test to restore the current Modus theme
2026-01-31 10:13:45 +02:00
Protesilaos Stavrou
cd01e5ead6
Use shorthands in the tests' file
2025-12-23 07:17:20 +02:00
Protesilaos Stavrou
d673df22ca
Make small tweaks to modus-themes-test-inheritance
2025-12-23 07:06:55 +02:00
Rudolf Adamkovič
9649a18f69
Fix incorrect face inheritance affecting AUCTeX
2025-12-08 14:35:29 +01:00