From 4809a9f78eecc7346e5d73b7f60ae6c51e057632 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sun, 27 Apr 2008 20:58:43 +0000 Subject: date: fix date-works test, add date-works-1 one (currently fails) --- testsuite/date/date-works | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'testsuite/date/date-works') diff --git a/testsuite/date/date-works b/testsuite/date/date-works index f726bab..0802e88 100644 --- a/testsuite/date/date-works +++ b/testsuite/date/date-works @@ -4,20 +4,20 @@ dt=`echo "$dt" | sed 's/^[^ ][^ ][^ ] [^ ][^ ][^ ] [ 0123][0-9] [012][0-9]:[0-5] test x"$dt" = x"OK" dt=`busybox date -d 1:2` -dt=`echo "$dt" | cut -b1-19` -test x"$dt" = x"Fri Apr 25 01:02:00" +dt=`echo "$dt" | cut -b12-19` +test x"$dt" = x"01:02:00" dt=`busybox date -d 1:2:3` -dt=`echo "$dt" | cut -b1-19` -test x"$dt" = x"Fri Apr 25 01:02:03" +dt=`echo "$dt" | cut -b12-19` +test x"$dt" = x"01:02:03" dt=`busybox date -d 1.2-3:4` -dt=`echo "$dt" | cut -b1-19` -test x"$dt" = x"Wed Jan 2 03:04:00" +dt=`echo "$dt" | cut -b5-19` +test x"$dt" = x"Jan 2 03:04:00" dt=`busybox date -d 1.2-3:4:5` -dt=`echo "$dt" | cut -b1-19` -test x"$dt" = x"Wed Jan 2 03:04:05" +dt=`echo "$dt" | cut -b5-19` +test x"$dt" = x"Jan 2 03:04:05" dt=`busybox date -d 1999.1.2-3:4` dt=`echo "$dt" | cut -b1-19` @@ -32,8 +32,8 @@ dt=`echo "$dt" | cut -b1-19` test x"$dt" = x"Sat Jan 2 03:04:05" dt=`busybox date -d 01231133` -dt=`echo "$dt" | cut -b1-19` -test x"$dt" = x"Wed Jan 23 11:33:00" +dt=`echo "$dt" | cut -b5-19` +test x"$dt" = x"Jan 23 11:33:00" dt=`busybox date -d 012311332000` dt=`echo "$dt" | cut -b1-19` -- cgit v1.1