Kaydet (Commit) 68a4d1f7 authored tarafından Lionel Elie Mamane's avatar Lionel Elie Mamane

sax converter unittest: test accept trailing zeros in fractional seconds

Change-Id: I3b6080df1cf8c13b5c0781c34c7806ac3c2cfbc7
üst 63572992
......@@ -135,7 +135,7 @@ void ConverterTest::testDuration()
"PT9.999999999999999999999999999999S", "PT9.999999999S" );
doTest( util::Duration(true , 0, 0, 9999, 0, 0, 0, 0), "-P9999D" );
doTest( util::Duration(true , 7, 6, 5, 4, 3, 2, 10000000),
"-P7Y6M5DT4H3M2.01S", "-P7Y6M5DT4H3M2.010000000S" );
"-P7Y6M5DT4H3M2.01000S", "-P7Y6M5DT4H3M2.010000000S" );
doTest( util::Duration(false, 0, 6, 0, 0, 3, 0, 0), "P6MT3M" );
doTest( util::Duration(false, 0, 0, 0, 0, 0, 0, 0), "P0D" );
doTestDurationF("1Y1M"); // invalid: no ^P
......
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