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

version» Context lines:

pike.git/lib/modules/Calendar.pmod/testsuite.in:27:      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)   ]])   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") + dnl NFT (Norway-France Time) is the name for CET on AIX. + test_dwim("Tue Nov 19 07:04:03 NFT 2002","CET") + test_dwim("Tue Nov 19 07:04:03 DFT 2002","CET")   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")
pike.git/lib/modules/Calendar.pmod/testsuite.in:69:   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) )   dnl The two objects above are not equal, which really is a bug.      dnl Bug 1884   test_equal( Calendar.ISO.parse("%dT%h:%m:%s", "19980717T14:08:55")->set_timezone("UTC"),    Calendar.ISO.parse("%dT%h:%m:%s", "19980717T14:08:55")->set_timezone("UTC") )   test_equal( Calendar.ISO.set_timezone("UTC")->parse("%dT%h:%m:%s", "19980717T14:08:55"),    Calendar.ISO.set_timezone("UTC")->parse("%dT%h:%m:%s", "19980717T14:08:55") )    + test_eq(Calendar.parse ("%Y %M %a", "2005 Oct 7"), Calendar.Day (2005, 10, 7)) + test_eq(Calendar.parse ("%Y %a", "2005 7"), Calendar.Day (2005, 1, 7))            dnl From verify.pike   define(test_WDIFF,[[   test_true( $1->week_no() == $2->week_no() )   test_true( $1->week() == $2->week() )   test_true( $1->week()->year() == $2->week()->year() )   ]])   define(test_day,[[