pike.git / lib / modules / testsuite.in

version» Context lines:

pike.git/lib/modules/testsuite.in:938:   test_equal( (int)(Val.Timestamp(1) + 4), 5)   test_equal( (int)Val.Timestamp(1234567890), 1234567890)      dnl - Val.Time      test_equal( (string)Val.Time(3,4), "03:04")   test_equal( (string)Val.Time(23,44), "23:44")   test_equal( (string)Val.Time(23,44,12), "23:44:12")   test_equal( (string)Val.Time(23), "00:00:23")   test_equal( (string)Val.Time(23,44,12, 12000), "23:44:12.000012") + test_equal( (string)(Val.Time(14,03,33,12000)+Val.Interval(123)), +  "14:05:36.000012")      dnl - Val.TimeTZ    - test_equal( (string)Val.TimeTZ(23,44,12, 12000), "23:44:12.000012") + test_equal( Regexp("([^-+]*)") +  ->split((string)Val.TimeTZ(23,44,12, 12000))[0], "23:44:12.000012")   test_equal( lambda() { Val.TimeTZ ttz = Val.TimeTZ(23,44);    ttz->timezone = 3600;    return (string)ttz;}(),    "23:44-01") -  + test_equal( Regexp("([^-+]*)") +  ->split((string)(Val.TimeTZ(14,03,33,12000)+Val.Interval(123)))[0], +  "14:05:36.000012")      dnl - Val.Date      test_equal( (string)Val.Date(2000,1,18), "2000/01/18")   test_equal( (string)Val.Date(2000,6,18), "2000/06/18")   test_equal( (string)Val.Date(1970,1,1), "1970/01/01")   test_equal( (string)Val.Date(1970,1,2), "1970/01/02")   test_equal( (string)Val.Date(1969,12,31), "1969/12/31")   test_equal( (string)Val.Date(1850,12,31), "1850/12/31")   test_equal( (string)Val.Date(1850,12,32), "1851/01/01")   test_equal( (string)Val.Date(1850,13,27), "1851/01/27")   test_equal( (string)Val.Date(1850,14,27), "1851/02/27")   test_equal( (string)(Val.Date(1850,14,27) + 1), "1851/02/28")   test_equal( (string)Val.Date(1234567890), "2009/02/13")    -  + test_equal( (int)(Val.Date(2017,7,14)+Val.Time(12,03,33,12000)), +  1500033813) + test_equal( Regexp("([^-+]*)") +  ->split((string)(Val.Date(2017,7,14) +  + Val.TimeTZ(2017,7,14,12,03,33,12000)))[0], +  "2017/07/14 12:03:33.000012") +    dnl - Val.Interval      test_equal( (string)Val.Interval(3,1,12,12000), "03:01:12.000012")   test_equal( (string)Val.Interval(3,1,12,12000), "03:01:12.000012")   test_equal( (string)Val.Interval(133,1,12,12000), "133:01:12.000012")   test_equal( (string)Val.Interval(-133,1,12,12000), "-132:58:47.999988")   test_equal( (string)Val.Interval(-133,-1,-12,-12000), "-133:01:12.000012")   test_equal( (string)Val.Interval(-133,1), "-132:59")   test_equal( (string)Val.Interval(-133,-1), "-133:01")   test_equal( (string)Val.Interval(100), "00:01:40")