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.16 2008/02/05 21:34:47 mast Exp $ + dnl $Id: testsuite.in,v 1.17 2008/03/29 21:03:21 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);   test_eq([[Calendar.Gregorian.Day(2500000)->month_day()]],31)   test_eq([[Calendar.ISO.Day(2500000)->month_day()]],31)   test_eq([[Calendar.Julian.Day(2500000)->month_day()]],17)   test_eq([[(int)(Calendar.Stardate.Tick("julian",2500000)->tic())]],-190335)      test_eq(Calendar.ISO.Week(2002,1)->day()->format_ymd(),"2001-12-31")      test_eval_error(Calendar.ISO.set_timezone("Europe/Stockholm")    ->dwim_time("2000-03-26 02:01:17")) -  + test_eval_error(Calendar.Second()->set_timezone("n"))      test_eq(Calendar.ISO_UTC.dwim_time("2000-03-26 02:01:17")->unix_time(),    954036077)      test_do(Calendar.TimeRange t = Calendar.now())      dnl Some more or less odd timezones encountered by Xenofarm:   define(test_dwim,[[    test_eq(Calendar.ISO.set_timezone("CET")->dwim_time($1)->format_time(),"2002-11-19 07:04:03")    test_eq(Calendar.ISO.set_timezone("CET")->dwim_time($1)->tzname(),$2)