|
|
@@ -89,3 +89,15 @@ TEST(FormatTest, SupportsISO8601Format) {
|
|
|
auto fmt = format::parse_format_string("%d{ISO8601}");
|
|
|
EXPECT_THAT(fmt.process({{NOW,0}}), Eq("2019-04-04T18:17:20.000Z"));
|
|
|
}
|
|
|
+
|
|
|
+TEST(FormatTest, SupportsSingleDayFormat) {
|
|
|
+ using testing::Eq;
|
|
|
+ auto fmt = format::parse_format_string("%d{ABSOLUTE}");
|
|
|
+ EXPECT_THAT(fmt.process({{NOW,0}}), Eq("18:17:20,000"));
|
|
|
+}
|
|
|
+
|
|
|
+TEST(FormatTest, SupportsHumanDateFormat) {
|
|
|
+ using testing::Eq;
|
|
|
+ auto fmt = format::parse_format_string("%d{DATE}");
|
|
|
+ EXPECT_THAT(fmt.process({{NOW,0}}), Eq("04 Apr 2019 18:17:20,000"));
|
|
|
+}
|