From b0de9111034893def5273082e1bfb13973e80f11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Tue, 21 Jun 2005 20:51:13 +0000 Subject: [PATCH] test for "%Y%m" git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15504 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/roken/strpftime-test.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/roken/strpftime-test.c b/lib/roken/strpftime-test.c index 528b6727e..bad4302bb 100644 --- a/lib/roken/strpftime-test.c +++ b/lib/roken/strpftime-test.c @@ -279,6 +279,15 @@ main(int argc, char **argv) } } } + { + struct tm tm; + memset(&tm, 0, sizeof(tm)); + strptime ("200505", "%Y%m", &tm); + if (tm.tm_year != 105) + ++ret; + if (tm.tm_mon != 4) + ++ret; + } if (ret) { printf ("%d errors\n", ret); return 1;