summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-06-04 11:13:38 +0100
committerCarl Hetherington <cth@carlh.net>2018-06-04 11:13:38 +0100
commitab1c8a67afba072b1c29f0c3c34aa9779643e66a (patch)
tree605b85098b25c61741694de6da8aab3b186d3cce /test
parentb551048b6562c0697f8b748a2f0907dbd3d8fb96 (diff)
parentd2ee8239585be648ac63e560cb9cd363352ff11c (diff)
Merge branch 'master' of ssh://git.carlh.net/home/carl/git/dcpomatic
Diffstat (limited to 'test')
-rw-r--r--test/util_test.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/util_test.cc b/test/util_test.cc
index e0e70f902..4b3e20ae3 100644
--- a/test/util_test.cc
+++ b/test/util_test.cc
@@ -68,6 +68,8 @@ BOOST_AUTO_TEST_CASE (seconds_to_approximate_hms_test)
BOOST_CHECK_EQUAL (seconds_to_approximate_hms (17 * 60 + 20), "17m");
BOOST_CHECK_EQUAL (seconds_to_approximate_hms (1 * 3600), "1h");
BOOST_CHECK_EQUAL (seconds_to_approximate_hms (3600 + 40 * 60), "1h 40m");
+ BOOST_CHECK_EQUAL (seconds_to_approximate_hms (2 * 3600), "2h");
+ BOOST_CHECK_EQUAL (seconds_to_approximate_hms (2 * 3600 - 1), "2h");
BOOST_CHECK_EQUAL (seconds_to_approximate_hms (13 * 3600 + 40 * 60), "14h");
}