commit: c1ad668c65c4dd731a16a29c3662480fdc809ba2
parent 2765d84ee83ac56e7f26ad8a2c181ac8b6e79eae
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Sun, 24 Sep 2023 18:22:46 +0200
test-cmd/date: Test fractional seconds
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/test-cmd/date b/test-cmd/date
@@ -70,6 +70,8 @@ isodate_body() {
atf_check -o "inline:0\n" ../cmd/date -u -d "1970-01-01T00:00:00Z" '+%s'
atf_check -o "inline:69\n" ../cmd/date -u -d "1970-01-01T00:01:09Z" '+%s'
atf_check -o "inline:-69\n" ../cmd/date -u -d "1969-12-31T23:58:51Z" '+%s'
+ atf_check -o "inline:-69\n" ../cmd/date -u -d "1969-12-31T23:58:51.00Z" '+%s'
+ atf_check -o "inline:-69\n" ../cmd/date -u -d "1969-12-31T23:58:51,00Z" '+%s'
}
atf_init_test_cases() {