pike.git / lib / modules / Calendar.pmod / testsuite.in

version» Context lines:

pike.git/lib/modules/Calendar.pmod/testsuite.in:1:   START_MARKER - dnl $Id: testsuite.in,v 1.22 2008/05/23 00:34:20 mast Exp $ + dnl $Id: testsuite.in,v 1.23 2009/03/11 16:02:53 nilsson Exp $      dnl NOTE:   dnl *every* time the Calendar tests have failed, it's not the   dnl Calendar module that had any errors. Please don't commit   dnl your Pike until you've got Calendar to compile again. /Mirar      test_true(Calendar.Day())      test_eq([[Calendar.Austrian.Day(2500000)->month_day()]],31)   test_eq([[Calendar.Coptic.Day(2500000)->month_day()]],25);
pike.git/lib/modules/Calendar.pmod/testsuite.in:32:    test_eq(Calendar.ISO.set_timezone("CET")->dwim_time($1)->tzname(),$2)   ]])   test_dwim("Tue Nov 19 07:04:03 MET 2002","MET")   test_dwim("Tue Nov 19 07:04:03 CST 2002","CST")   test_dwim("Tue Nov 19 07:04:03 CET 2002","CET")   test_dwim("Tue Nov 19 07:04:03 2002","CET")   test_dwim("Tue Nov 19 07:04:03 NFT 2002","NFT")   dnl test_dwim("Tue Nov 19 07:04:03 DFT 2002","DFT")   test_dwim("Tue Nov 19 07:04:03 MET DST 2002","MET")   test_dwim("Tue Nov 19 07:04:03 METDST 2002","MET") + test_dwim([["Tue, 19 Nov 2002 07:04:03 GMT"]],"GMT") + test_dwim([["Tuesday, 19-Nov-02 07:04:03 GMT"]],"GMT") + test_dwim("Tue Nov 19 07:04:03 2002","GMT")    -  + define(test_http,[[ +  test_eq(Calendar.ISO.http_time($1)->format_time(),$2) + ]]) + test_http([["Tue, 19 Nov 2002 07:04:03 GMT"]],"2002-11-19 07:04:03") + test_http([["Tuesday, 19-Nov-02 07:04:03 GMT"]],"2002-11-19 07:04:03") + test_http("Tue Nov 1 07:04:03 2002","2002-11-01 07:04:03") + test_http("Tue Nov 19 07:04:03 2002","2002-11-19 07:04:03") +    test_eq(arrayp(Calendar.TZnames.zonenames()), 1)   test_do([[    foreach (Calendar.TZnames.zones; string r1; array(string) r2s)    foreach (r2s, string r2)    Calendar.ISO.Second()->set_timezone (r1 + "/" + r2);   ]])      dnl FAQ tests   test_eq( Calendar.dwim_day("1/2/3"), Calendar.Day(2003,1,2) )   test_eq( Calendar.dwim_day("1 aug 2001"), Calendar.Day(2001,8,1) )