diff options
author | Richard Hughes <richard@hughsie.com> | 2017-02-08 15:52:10 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2017-02-08 20:44:49 +0000 |
commit | 296560cf93c339466db1eeede6ce21a296166618 (patch) | |
tree | ef97cd20a4660018fd32d14e6ffe8290cffe8f6b /plugins/color/gcm-self-test.c | |
parent | 0b6028944936921227ebe6389b5fc5202299d29f (diff) | |
download | gnome-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.c | 3 |
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 |