Skip to content

Commit

Permalink
Changes after review
Browse files Browse the repository at this point in the history
  • Loading branch information
twollgam authored and Baklap4 committed May 4, 2024
1 parent edf48af commit 41b7637
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions testing/utiltest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,12 @@ TEST(UnitTest_Utils, smoothstep_3_clamping) {
TEST(UnitTest_Utils, format) {
auto const time = std::chrono::seconds(7260);

#ifndef __MINGW32__
// next two tests are not working when compiled with mingw. see https://sourceforge.net/p/mingw-w64/bugs/793/
//EXPECT_EQ("01/01/70 02:01", format(time, "%D %R"));
//EXPECT_EQ("02:01:00 1970-01-01", format(time, "%T %F"));
EXPECT_EQ("01/01/70 02:01", format(time, "%D %R", true));
EXPECT_EQ("02:01:00 1970-01-01", format(time, "%T %F", true));
#endif

EXPECT_EQ("01/01/70 02:01", format(time, "%m/%d/%y %H:%M", true));
EXPECT_EQ("02:01:00 1970-01-01", format(time, "%H:%M:%S %Y-%m-%d", true));
EXPECT_EQ("02:01:00 1970-01-01", format(time, "%X %Y-%m-%d", true));
Expand Down

0 comments on commit 41b7637

Please sign in to comment.