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.25 2010/03/02 11:51:09 grubba Exp $ + dnl $Id$      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:152:   test_any([[    object d = Calendar.ISO.Day (2007, 12, 01);    d->week_day();    return d->range (d)->week()->year_no();   ]], 2007)      dnl From Xuesong Guo <peterpan@wukong.com>   test_eq([[((Calendar.dwim_day("20090501")+1)+1)]],    [[(Calendar.dwim_day("20090501")+2)]])    + dnl From Marc Dirix <marc@dirix.nu> + test_any([[ +  object d = Calendar.Day(); +  object m = Calendar.Minute()*60; +  object r = d + d; +  return (r + m)->minute(); + ]], [[ (Calendar.Day() + Calendar.Day() + Calendar.Minute()*60)->minute() ]]) +    test_eq([[(Calendar.ISO.Week (2007, 52) + 1)->year_no()]], 2008)      test_eq([[Calendar.ISO.Week (2007, 1)->distance (Calendar.ISO.Week (2008, 1))->number_of_weeks()]], 52)      test_eq([[Calendar.ISO.Year(2007)->year()->year_no()]], 2007)   test_eq([[Calendar.ISO.Year(2007)->year(1)->year_no()]], 2007)   test_eq([[Calendar.ISO.Year(2007)->year(-1)->year_no()]], 2007)   test_eq([[Calendar.ISO.Year(2007)->set_size(2)->year()->year_no()]], 2007)   test_eq([[Calendar.ISO.Year(2007)->set_size(2)->year(1)->year_no()]], 2007)   test_eq([[Calendar.ISO.Year(2007)->set_size(2)->year(2)->year_no()]], 2008)