cvs: pecl /date/tests 010.phpt
| From: | Pierre-Alain Joye | Date: | Fri, 09 Jan 2004 14:26:24 +0000 |
| Subject: | cvs: pecl /date/tests 010.phpt | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-706@lists.php.net to get a copy of this message | ||
pajoye Fri Jan 9 09:26:24 2004 EDT
Modified files:
/pecl/date/tests 010.phpt
Log:
- Update 010.phpt, add leap case
Index: pecl/date/tests/010.phpt
diff -u pecl/date/tests/010.phpt:1.1 pecl/date/tests/010.phpt:1.2
--- pecl/date/tests/010.phpt:1.1 Fri Jan 9 08:50:49 2004
+++ pecl/date/tests/010.phpt Fri Jan 9 09:26:24 2004
@@ -30,9 +30,12 @@
array(3,array(17,11,1995),array(17,2,1996)),
array(-3,array(17,2,1996),array(17,11,1995)),
array(1,array(28,2,1995),array(28,3,1995)),
- array(-1,array(28,3,1995),array(28,2,1995))
- //array(11642,array(3,1,1964),array(18,11,1995)),
- //array(-11642,array(18,11,1995),array(3,1,1964))
+ array(-1,array(28,3,1995),array(28,2,1995)),
+ /* test failed with "sub", expected behiavor
+ * 29/2/1995 do not exist and is round to 28
+ * to respect the month substraction
+ */
+ array(-1,array(29,3,1995),array(28,2,1995)),
);
$d = date_new();