diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2025-04-14 15:00:07 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2025-04-14 15:00:07 +0000 |
| commit | f7807c0f4c5f1e01b72157bbad650d20a1a9d4db (patch) | |
| tree | a6207ea23177311323f4a2483eb23799886723db /tests | |
| parent | config+render: move alpha-mode to colors.alpha-mode, fix cursor handling (diff) | |
tests: config: test colors.alpha-mode
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test-config.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test-config.c b/tests/test-config.c index f431f4ab..69d349b4 100644 --- a/tests/test-config.c +++ b/tests/test-config.c @@ -720,6 +720,11 @@ test_section_colors(void) &conf.colors.search_box.match.fg, &conf.colors.search_box.match.bg); + test_enum(&ctx, &parse_section_colors, "alpha-mode", 3, + (const char *[]){"default", "matching", "all"}, + (int []){ALPHA_MODE_DEFAULT, ALPHA_MODE_MATCHING, ALPHA_MODE_ALL}, + (int *)&conf.colors.alpha_mode); + for (size_t i = 0; i < 255; i++) { char key_name[4]; sprintf(key_name, "%zu", i); |
