summaryrefslogtreecommitdiff
path: root/plugins/color/gcm-self-test.c
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2017-02-08 15:52:10 +0000
committerRichard Hughes <richard@hughsie.com>2017-02-08 20:44:49 +0000
commit296560cf93c339466db1eeede6ce21a296166618 (patch)
treeef97cd20a4660018fd32d14e6ffe8290cffe8f6b /plugins/color/gcm-self-test.c
parent0b6028944936921227ebe6389b5fc5202299d29f (diff)
downloadgnome-settings-daemon-296560cf93c339466db1eeede6ce21a296166618.tar.gz
color: Fix 'night shift'-style natural light settings
Diffstat (limited to 'plugins/color/gcm-self-test.c')
-rw-r--r--plugins/color/gcm-self-test.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/color/gcm-self-test.c b/plugins/color/gcm-self-test.c
index 08241ceb..a5163a72 100644
--- a/plugins/color/gcm-self-test.c
+++ b/plugins/color/gcm-self-test.c
@@ -123,6 +123,9 @@ gcm_test_frac_day (void)
/* test rollover to next day */
g_assert (gsd_natural_light_frac_day_is_between (23, 20, 6));
g_assert (!gsd_natural_light_frac_day_is_between (12, 20, 6));
+
+ /* test rollover to the previous day */
+ g_assert (gsd_natural_light_frac_day_is_between (5, 16, 8));
}
int