X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=test%2Futc_offset_to_string_test.cc;h=3b4e0b4622904fc97d37ac56717f1a205b1910ff;hb=77726c718ccce4af4bc82c3695a13cea859df874;hp=6ea597f0e6dfbff5c6a0b0dbd190d35cc79eef6b;hpb=d43370b8a879f5d318701de4f16808a7cb1de77e;p=libdcp.git diff --git a/test/utc_offset_to_string_test.cc b/test/utc_offset_to_string_test.cc index 6ea597f0..3b4e0b46 100644 --- a/test/utc_offset_to_string_test.cc +++ b/test/utc_offset_to_string_test.cc @@ -17,14 +17,16 @@ */ +#include #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"); }