From e86d9fd29b8b90bf8c98b861aea250b9c0dcd847 Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Thu, 26 Sep 2024 20:20:33 -0500 Subject: [PATCH] updated test --- repertory/repertory_test/src/utils_test.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/repertory/repertory_test/src/utils_test.cpp b/repertory/repertory_test/src/utils_test.cpp index 73e83f6a..65e0b60f 100644 --- a/repertory/repertory_test/src/utils_test.cpp +++ b/repertory/repertory_test/src/utils_test.cpp @@ -55,6 +55,11 @@ TEST(utils, convert_api_date) { EXPECT_EQ(17, tm_data->tm_hour); EXPECT_EQ(50, tm_data->tm_min); EXPECT_EQ(30, tm_data->tm_sec); + + auto millis = (s3_provider::convert_api_date("2009-10-12T17:50:30.111Z") % + utils::time::NANOS_PER_SECOND) / + 1000000UL; + EXPECT_EQ(111U, millis); } #endif // defined(_WIN32) }