tests: config: test colors.alpha-mode

This commit is contained in:
Daniel Eklöf 2025-04-14 17:00:07 +02:00
parent d2d4f53861
commit f7807c0f4c
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -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);