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.18 2008/04/23 00:13:43 nilsson Exp $ + dnl $Id: testsuite.in,v 1.19 2008/05/16 19:45:50 mast 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:34:   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_eq(arrayp(Calendar.TZnames.zonenames()), 1) + test_do([[ +  foreach (Calendar.TZnames.zones; string r1; array(string) r2s) +  foreach (r2s, string r2) { +  werror (r1 + "/" + r2 + "\n"); +  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) )   test_false( Calendar.dwim_day("1 aug 2001")==Calendar.Day(2001,8,2) )   dnl Missing two dwim_time tests   test_eq( Calendar.parse("%Y-%M-%D %h:%m","2040-11-08 2:46"),    Calendar.Minute(2040,11,8,2,46) )   test_false( Calendar.parse("%Y w%W %e %h:%m %p %z","1913 w4 monday 2:14 pm CET")    < Calendar.set_timezone("CET")->Minute(1913,1,20,14,14) )