Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/lib/libutil Add some tests for dates several centures ...



details:   https://anonhg.NetBSD.org/src/rev/3ec3f32a986c
branches:  trunk
changeset: 772088:3ec3f32a986c
user:      apb <apb%NetBSD.org@localhost>
date:      Sat Dec 17 19:07:34 2011 +0000

description:
Add some tests for dates several centures into the past and future.
These currently fail, but I'll fix that soon.

diffstat:

 tests/lib/libutil/t_parsedate.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 5e3574bfd1e7 -r 3ec3f32a986c tests/lib/libutil/t_parsedate.c
--- a/tests/lib/libutil/t_parsedate.c   Sat Dec 17 19:04:07 2011 +0000
+++ b/tests/lib/libutil/t_parsedate.c   Sat Dec 17 19:07:34 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_parsedate.c,v 1.2 2010/12/21 00:24:14 christos Exp $ */
+/* $NetBSD: t_parsedate.c,v 1.3 2011/12/17 19:07:34 apb Exp $ */
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: t_parsedate.c,v 1.2 2010/12/21 00:24:14 christos Exp $");
+__RCSID("$NetBSD: t_parsedate.c,v 1.3 2011/12/17 19:07:34 apb Exp $");
 
 #include <atf-c.h>
 #include <util.h>
@@ -52,6 +52,8 @@
        ATF_CHECK(parsedate("23jun2001", NULL, NULL) != -1);
        ATF_CHECK(parsedate("1-sep-06", NULL, NULL) != -1);
        ATF_CHECK(parsedate("1/11", NULL, NULL) != -1);
+       ATF_CHECK(parsedate("1500-01-02", NULL, NULL) != -1);
+       ATF_CHECK(parsedate("9999-12-21", NULL, NULL) != -1);
 }
 
 ATF_TC(times);



Home | Main Index | Thread Index | Old Index