summaryrefslogtreecommitdiff
path: root/src/test/test-date.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/test-date.c')
-rw-r--r--src/test/test-date.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/test-date.c b/src/test/test-date.c
index 57f8b371d3..7e14d196c6 100644
--- a/src/test/test-date.c
+++ b/src/test/test-date.c
@@ -65,5 +65,8 @@ int main(int argc, char *argv[]) {
assert_se(parse_timestamp("+2y 4d", &t) >= 0);
log_info("%s", format_timestamp(buf, sizeof(buf), t));
+ assert_se(parse_timestamp("5months ago", &t) >= 0);
+ log_info("%s", format_timestamp(buf, sizeof(buf), t));
+
return 0;
}