summaryrefslogtreecommitdiffstats
path: root/tests/xtime.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-02-29 10:12:43 -0500
committerTavian Barnes <tavianator@tavianator.com>2024-02-29 10:12:43 -0500
commite6d80d04d6928c452b48eae717373bf6a943e355 (patch)
treeb0db89b106d8f0e5aa2e768fc4127701c16f2e1b /tests/xtime.c
parenta9f3cde30426b546ba6e3172e1a7951213a72049 (diff)
downloadbfs-e6d80d04d6928c452b48eae717373bf6a943e355.tar.xz
tests: Add more datetime parsing integration tests
Diffstat (limited to 'tests/xtime.c')
-rw-r--r--tests/xtime.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/xtime.c b/tests/xtime.c
index c2ee8f3..4a7d55c 100644
--- a/tests/xtime.c
+++ b/tests/xtime.c
@@ -94,10 +94,10 @@ static bool check_xgetdate(void) {
& compare_xgetdate("1991-12-14T10:11Z", 0, 692705460)
& compare_xgetdate("1991-12-14T10:11:12Z", 0, 692705472)
& compare_xgetdate("1991-12-14T10:11:12?", EINVAL, 0)
- & compare_xgetdate("1991-12-14T02-08", 0, 692704800)
+ & compare_xgetdate("1991-12-14T03-07", 0, 692704800)
& compare_xgetdate("1991-12-14T06:41-03:30", 0, 692705460)
- & compare_xgetdate("1991-12-14T02:11:12-08:00", 0, 692705472)
- & compare_xgetdate("19911214 021112-0800", 0, 692705472);
+ & compare_xgetdate("1991-12-14T03:11:12-07:00", 0, 692705472)
+ & compare_xgetdate("19911214 031112-0700", 0, 692705472);
}
/** xmktime() tests. */