Skip to content

Commit e18f382

Browse files
committed
Fix test
1 parent 10a498d commit e18f382

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

test/dbus.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -759,8 +759,8 @@ TEST test_dbus_notify_colors(void)
759759
ASSERTm("Valid color strings should change the notification color", COLOR_SAME(n->colors.fg, fg));
760760

761761
// Invalid color strings are ignored
762-
//ASSERTm("Invalid color strings should not change the color struct", COLOR_SAME(n->colors.bg, settings.colors_norm.bg));
763-
//ASSERTm("Invalid color strings should not change the color struct", COLOR_SAME(n->colors.highlight, settings.colors_norm.highlight));
762+
ASSERTm("Invalid color strings should not change the color struct", COLOR_SAME(n->colors.bg, settings.colors_norm.bg));
763+
ASSERTm("Invalid color strings should not change the gradient struct", n->colors.highlight == settings.colors_norm.highlight);
764764

765765
dbus_notification_free(n_dbus);
766766

test/setting.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,12 @@ TEST test_dunstrc_defaults(void) {
9292
break;
9393
case TYPE_TIME:
9494
case TYPE_INT:
95-
{
95+
{
9696
int a = *(int*) ((char*) &s_default + offset);
9797
int b = *(int*) ((char*) &s_dunstrc + offset);
9898
ASSERT_EQm(message, a, b);
99-
}
100-
break;
99+
}
100+
break;
101101
case TYPE_DOUBLE:
102102
case TYPE_STRING:
103103
case TYPE_PATH:

0 commit comments

Comments
 (0)