pike.git / lib / modules / testsuite.in

version» Context lines:

pike.git/lib/modules/testsuite.in:983:   test_equal( Regexp("([^-+]*)")    ->split((string)(Timestamp(2001,2,3)+Interval(24,4,5)))[0],    "2001/02/04 00:04:05")   test_equal( Regexp("([^-+]*)")    ->split((string)(Timestamp(2001,2,3)-Interval(24,4,5)))[0],    "2001/02/01 23:55:55")   test_equal( Regexp("([^-+]*)")    ->split((string)(Timestamp(2001,2,3)+Interval(24,4,5)*2))[0],    "2001/02/05 00:08:10")    + test_equal( (string)(Date(2017,12,2) - Date(2017,12,5)), "-3 DAY") + test_equal( (string)(Date(2017,12,5) - Date(2017,12,2)), "3 DAY") + test_equal( (string)(Timestamp(2017,12,5) - Timestamp(2017,12,2)), "72:00") + test_equal( (string)(Timestamp(2017,12,5) - Date(2017,12,2)), "72:00") + test_equal( (string)(Date(2017,12,5) - Timestamp(2017,12,2)), "72:00") +    dnl - Range      test_equal( (string)Range(2,5), "[2\54""5\51" )   test_equal( (string)Range(2,7), "[2\54""7\51" )   test_equal( (string)Range(2,Math.inf), "[2\54""\51" )   test_equal( (string)Range(2,2), "empty" )   test_equal( (string)Range(0,0), "empty" )   test_equal( (string)Range(), "empty" )   test_equal( (string)Range(-Math.inf,2), "(\54""2)" )   test_equal( (string)Range(-Math.inf,Math.inf), "(\54"")" )
pike.git/lib/modules/testsuite.in:1008:   test_equal( (string)Range(Date(2017,1,1), Date(2017,1,2)),    "[2017/01/01\54""2017/01/02\51" )   test_equal( (string)Range(Date(2017,1,3), Date(2017,1,2)), "empty" )   test_equal( (string)Range(-Math.inf, Date(2017,1,2)), "(,2017/01/02)" )      test_equal( (string)Range(Inet("1.2.3.2"), Inet("1.2.3.4")),    "[1.2.3.2\54""1.2.3.4\51" )   test_equal( (string)Range(Inet("1.2.3.7"), Inet("1.2.3.4")), "empty" )   test_equal( (string)Range(-Math.inf, Inet("1.2.3.4")), "(,1.2.3.4)" )    + test_equal( (string)Range(Date(2017,12,2), Date(2017,12,5))->interval(), +  "3 DAY") +    dnl - Inet      test_equal( (string)Inet("255.255.255.255"), "255.255.255.255")   test_equal( (int)Inet("255.255.255.255"), 0xffffffff)   test_equal( (string)Inet("255.255.255.255/20"), "255.255.255.255/20")   test_equal( (int)Inet("255.255.255.255/20"), 0xffffffff)   test_equal( (string)Inet("fffe::"), "fffe::")   test_equal( (string)Inet("fffe::/24"), "fffe::/24")   test_equal( (string)Inet("::1.2.3.4/100"), "1.2.3.4/4")   test_equal( (string)Inet("1.2.3.4/4"), "1.2.3.4/4")   test_equal( (int)Inet("1.2.3.4/4"), 0x01020304) -  + test_equal( (string)Inet(0x01020304, 128 - 8), "1.2.3.4/24")   test_equal( (int)Inet("fffe::"), 0xfffe0000000000000000000000000000)      dnl - Array      test_equal(Array.diff(({ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }),    ({ 6, 7, 8, 9, 3, 4, 5, 1, 2, 0 })),    ({ ({ ({ 0, 1, 2, 3, 4, 5 }),    ({ 6, 7, 8, 9 }), ({}) }),    ({ ({}), ({ 6, 7, 8, 9 }),    ({ 3, 4, 5, 1, 2, 0 }) }) }))