diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-12-22 23:35:43 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-12-22 23:35:43 +0000 |
| commit | 937b96045830a2326daff83b70b892f2d25244ff (patch) | |
| tree | a882ba2e301b61f2f796a0305164155986c2a0e2 /test/util_test.cc | |
| parent | 54e6a93b3399dd7dd5f21c2ad3c9951db24b1b2d (diff) | |
Remove some unused code.
Diffstat (limited to 'test/util_test.cc')
| -rw-r--r-- | test/util_test.cc | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/test/util_test.cc b/test/util_test.cc index 3817a8d08..43b7b9b1d 100644 --- a/test/util_test.cc +++ b/test/util_test.cc @@ -29,23 +29,6 @@ using std::string; using std::vector; using boost::shared_ptr; -BOOST_AUTO_TEST_CASE (split_at_spaces_considering_quotes_test) -{ - string t = "Hello this is a string \"with quotes\" and indeed without them"; - vector<string> b = split_at_spaces_considering_quotes (t); - vector<string>::iterator i = b.begin (); - BOOST_CHECK_EQUAL (*i++, "Hello"); - BOOST_CHECK_EQUAL (*i++, "this"); - BOOST_CHECK_EQUAL (*i++, "is"); - BOOST_CHECK_EQUAL (*i++, "a"); - BOOST_CHECK_EQUAL (*i++, "string"); - BOOST_CHECK_EQUAL (*i++, "with quotes"); - BOOST_CHECK_EQUAL (*i++, "and"); - BOOST_CHECK_EQUAL (*i++, "indeed"); - BOOST_CHECK_EQUAL (*i++, "without"); - BOOST_CHECK_EQUAL (*i++, "them"); -} - BOOST_AUTO_TEST_CASE (md5_digest_test) { vector<boost::filesystem::path> p; @@ -75,20 +58,6 @@ BOOST_AUTO_TEST_CASE (dcptime_round_up_test) BOOST_CHECK_EQUAL (DCPTime (45312).round_up (29.976), DCPTime (48045)); } - -BOOST_AUTO_TEST_CASE (divide_with_round_test) -{ - BOOST_CHECK_EQUAL (divide_with_round (0, 4), 0); - BOOST_CHECK_EQUAL (divide_with_round (1, 4), 0); - BOOST_CHECK_EQUAL (divide_with_round (2, 4), 1); - BOOST_CHECK_EQUAL (divide_with_round (3, 4), 1); - BOOST_CHECK_EQUAL (divide_with_round (4, 4), 1); - BOOST_CHECK_EQUAL (divide_with_round (5, 4), 1); - BOOST_CHECK_EQUAL (divide_with_round (6, 4), 2); - - BOOST_CHECK_EQUAL (divide_with_round (1000, 500), 2); -} - BOOST_AUTO_TEST_CASE (timecode_test) { DCPTime t = DCPTime::from_seconds (2 * 60 * 60 + 4 * 60 + 31) + DCPTime::from_frames (19, 24); |
