Commit 91b56647 authored by Cédric Traizet's avatar Cédric Traizet
Browse files

TEST: add test cases for Duration getters

parent 8e5d83e1
Pipeline #8397 passed with stages
in 69 minutes
......@@ -49,6 +49,10 @@ BOOST_AUTO_TEST_CASE(Duration)
== 3);
BOOST_TEST(otb::MetaData::Duration::Seconds(5.5) + otb::MetaData::Duration::Nanoseconds(10)
== otb::MetaData::Duration::Seconds(5.50000001) );
// Getter tests
BOOST_TEST(otb::MetaData::Duration::Nanoseconds(10).TotalSeconds() == 10e-9);
BOOST_TEST(otb::MetaData::Duration::Nanoseconds(10).TotalNanoseconds() == 10);
}
BOOST_AUTO_TEST_CASE(TimePoint)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment