Newsgroups: php.internals,php.qa Path: news.php.net Xref: news.php.net php.internals:17693 php.qa:25732 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 32922 invoked by uid 1010); 9 Aug 2005 11:52:32 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 32904 invoked from network); 9 Aug 2005 11:52:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Aug 2005 11:52:32 -0000 X-Host-Fingerprint: 66.111.4.26 out2.smtp.messagingengine.com Received: from ([66.111.4.26:58540] helo=out2.smtp.messagingengine.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 3F/83-04646-00998F24 for ; Tue, 09 Aug 2005 07:52:32 -0400 Received: from frontend1.internal (frontend1.internal [10.202.2.150]) by frontend1.messagingengine.com (Postfix) with ESMTP id 666E8CC9C83; Tue, 9 Aug 2005 07:52:29 -0400 (EDT) Received: from web1.messagingengine.com ([10.202.2.210]) by frontend1.internal (MEProxy); Tue, 09 Aug 2005 07:52:29 -0400 Received: by web1.messagingengine.com (Postfix, from userid 99) id 714BC1D61; Tue, 9 Aug 2005 07:52:26 -0400 (EDT) Message-ID: <1123588346.25543.240287705@webmail.messagingengine.com> X-Sasl-Enc: sXIWMb72WOuFj9gZODDqJeintIL+e+vKYGnus4Z3eSme 1123588346 To: "Derick Rethans" Cc: "PHP Quality Assurance Team Mailing List" , "PHP Developers Mailing List" Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 X-Mailer: MIME::Lite 1.5 (F2.73; T1.001; A1.64; B3.05; Q3.03) References: <1123587107.23784.240286519@webmail.messagingengine.com> In-Reply-To: Date: Tue, 09 Aug 2005 04:52:26 -0700 Subject: Re: [PHP-DEV] ext/calendar - New test scripts From: nrathna@fastmail.fm ("Rathna N") thank you for the response. I will incorporate the feedback and send the updated ones. Regards, Rathna. On Tue, 9 Aug 2005 13:45:06 +0200 (CEST), "Derick Rethans" said: > On Tue, 9 Aug 2005, Rathna N wrote: > > > Sorry, I forgot to add subject line to the old mail. > > the php-qa@lists.php.net list would be the best list for this subject. > As for the tests, it would be nice if you could provide a unified diff > against CVS's HEAD. That's much easier than have to download a .zip file > - we can more easily check the test cases then. > > Some points on the tests: > - please always use lower case filenames for the tests. > - as --TEST-- name, please just use the name of the function, such as > "jdtojulian()" (without any other description) > - try always to cover edge cases in your tests. (For gregorian times, it > makes sense to check what it does around the beginning of the > gregorian calendar for example). > - prefer var_dump() over print_r(). > - Always use the ISO 8601 format for outputting date (if you're > formatting them yourself). See easter_date.phpt f.e. > - In easter_date.phpt, you'll have to check way more years - just > testing 3 is not enough. > - There is no --DESCRIPTION-- field as you used in GregorianToJD.phpt. > - Always use - Please stick to the PEAR coding standards in your tests. > > And thanks for picking this up! But perhaps I can suggest to start with > other more used extensions? Most of our string and array functions don't > have enough testcases either. > > regards, > Derick > > -- > Derick Rethans > http://derickrethans.nl | http://ez.no | http://xdebug.org -- Rathna N nrathna@fastmail.fm -- http://www.fastmail.fm - mmm... Fastmail...