wscript tidying.
[libdcp.git] / test / utc_offset_to_string_test.cc
index 6ea597f0e6dfbff5c6a0b0dbd190d35cc79eef6b..3b4e0b4622904fc97d37ac56717f1a205b1910ff 100644 (file)
 
 */
 
+#include <boost/test/unit_test.hpp>
 #include "metadata.h"
+#include "util.h"
 
-/** Test XMLMetadata::utc_offset_to_string */
+/** Test dcp::utc_offset_to_string */
 BOOST_AUTO_TEST_CASE (utc_offset_to_string_test)
 {
-       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");
+       BOOST_CHECK_EQUAL (dcp::utc_offset_to_string (30), "+00:30");
+       BOOST_CHECK_EQUAL (dcp::utc_offset_to_string (60), "+01:00");
+       BOOST_CHECK_EQUAL (dcp::utc_offset_to_string (61), "+01:01");
+       BOOST_CHECK_EQUAL (dcp::utc_offset_to_string (7 * 60), "+07:00");
+       BOOST_CHECK_EQUAL (dcp::utc_offset_to_string (-11 * 60), "-11:00");
 }