diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-05-23 21:17:43 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-05-23 21:17:43 +0100 |
| commit | ab3db3166a2217eb9616fea068a952330a9e64a2 (patch) | |
| tree | 030c8cae6470679229818675d947a40216fa775f /test | |
| parent | 4f82cf8273f92719465ff3faec50c8e3a84561b3 (diff) | |
| parent | 3739c62f626b65da929d37fb7efc44a8e349e6f1 (diff) | |
Merge branch 'master' of ssh://git.carlh.net/home/carl/git/dcpomatic
Diffstat (limited to 'test')
| -rw-r--r-- | test/util_test.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/util_test.cc b/test/util_test.cc index e296229e1..9dcd05339 100644 --- a/test/util_test.cc +++ b/test/util_test.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2012-2014 Carl Hetherington <cth@carlh.net> + Copyright (C) 2012-2016 Carl Hetherington <cth@carlh.net> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -23,6 +23,7 @@ #include <boost/test/unit_test.hpp> #include "lib/util.h" +#include "lib/raw_convert.h" #include "lib/exceptions.h" using std::string; @@ -85,3 +86,9 @@ BOOST_AUTO_TEST_CASE (seconds_to_approximate_hms_test) BOOST_CHECK_EQUAL (seconds_to_approximate_hms (3600 + 40 * 60), "1h 40m"); BOOST_CHECK_EQUAL (seconds_to_approximate_hms (13 * 3600 + 40 * 60), "14h"); } + +BOOST_AUTO_TEST_CASE (raw_convert_test) +{ + BOOST_CHECK_EQUAL (raw_convert<string> ("foo"), "foo"); + BOOST_CHECK_EQUAL (raw_convert<string> ("foo bar"), "foo bar"); +} |
