summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-08-25 13:22:32 +0100
committerCarl Hetherington <cth@carlh.net>2013-08-25 13:22:32 +0100
commitb3e7a9625f860e7d83c4077b24fe811eb9941456 (patch)
treef2f12cfb9e98c99bcc5b3a6a5a852223dae7ed20 /test
parentf976e8ac94dfc6130797c5d98a0399321dce43e7 (diff)
parentbbf265955518069c5c841be5fe02a95b60e9197b (diff)
Merge branch 'master' into interop
Diffstat (limited to 'test')
-rw-r--r--test/tests.cc2
-rw-r--r--test/utc_offset_to_string_test.cc (renamed from test/bias_to_string_test.cc)14
2 files changed, 8 insertions, 8 deletions
diff --git a/test/tests.cc b/test/tests.cc
index 11189558..2543d025 100644
--- a/test/tests.cc
+++ b/test/tests.cc
@@ -70,7 +70,7 @@ wav (libdcp::Channel)
static string test_corpus = "../libdcp-test";
-#include "bias_to_string_test.cc"
+#include "utc_offset_to_string_test.cc"
#include "lut_test.cc"
#include "util_test.cc"
#include "decryption_test.cc"
diff --git a/test/bias_to_string_test.cc b/test/utc_offset_to_string_test.cc
index 56df40ea..6ea597f0 100644
--- a/test/bias_to_string_test.cc
+++ b/test/utc_offset_to_string_test.cc
@@ -19,12 +19,12 @@
#include "metadata.h"
-/** Test XMLMetadata::bias_to_string */
-BOOST_AUTO_TEST_CASE (bias_to_string_test)
+/** Test XMLMetadata::utc_offset_to_string */
+BOOST_AUTO_TEST_CASE (utc_offset_to_string_test)
{
- BOOST_CHECK_EQUAL (libdcp::XMLMetadata::bias_to_string (30), "+0030");
- BOOST_CHECK_EQUAL (libdcp::XMLMetadata::bias_to_string (60), "+0100");
- BOOST_CHECK_EQUAL (libdcp::XMLMetadata::bias_to_string (61), "+0101");
- BOOST_CHECK_EQUAL (libdcp::XMLMetadata::bias_to_string (7 * 60), "+0700");
- BOOST_CHECK_EQUAL (libdcp::XMLMetadata::bias_to_string (-11 * 60), "-1100");
+ BOOST_CHECK_EQUAL (libdcp::XMLMetadata::utc_offset_to_string (30), "+00:30");
+ BOOST_CHECK_EQUAL (libdcp::XMLMetadata::utc_offset_to_string (60), "+01:00");
+ BOOST_CHECK_EQUAL (libdcp::XMLMetadata::utc_offset_to_string (61), "+01:01");
+ BOOST_CHECK_EQUAL (libdcp::XMLMetadata::utc_offset_to_string (7 * 60), "+07:00");
+ BOOST_CHECK_EQUAL (libdcp::XMLMetadata::utc_offset_to_string (-11 * 60), "-11:00");
}