pike.git / lib / modules / testsuite.in

version» Context lines:

pike.git/lib/modules/testsuite.in:1008:   test_equal( (string)(Val.Timestamp(2017,12,5) - Val.Timestamp(2017,12,2)),    "72:00")   test_equal( (string)(Val.Timestamp(2017,12,5) - Val.Date(2017,12,2)), "72:00")   test_equal( (string)(Val.Date(2017,12,5) - Val.Timestamp(2017,12,2)), "72:00")      dnl - Val.Range      test_equal( (string)Val.Range(2,5), "[2\54""5\51" )   test_equal( (string)Val.Range(2,7), "[2\54""7\51" )   test_equal( (string)Val.Range(2,Math.inf), "[2\54""\51" ) + test_equal( !Val.Range(2,2), 1 ) + test_equal( !Val.Range(3,2), 1 ) + test_equal( !!Val.Range(3,2), 0 ) + test_equal( Val.Range(3,2)->isempty(), 1 )   test_equal( (string)Val.Range(2,2), "empty" )   test_equal( (string)Val.Range(0,0), "empty" )   test_equal( (string)Val.Range(), "empty" )   test_equal( (string)Val.Range(-Math.inf,2), "(\54""2)" )   test_equal( (string)Val.Range(-Math.inf,Math.inf), "(\54"")" )    -  + test_equal( Val.Range(2,7)->contains(Val.Range(2,7)), 1 ) + test_equal( Val.Range(2,7)->contains(Val.Range(2,6)), 1 ) + test_equal( Val.Range(2,7)->contains(Val.Range(3,6)), 1 ) + test_equal( Val.Range(2,7)->contains(Val.Range(1,6)), 0 ) + test_equal( Val.Range(2,7)->contains(Val.Range(1,7)), 0 ) + test_equal( Val.Range(2,7)->contains(Val.Range(1,8)), 0 ) + test_equal( Val.Range(2,7)->contains(Val.Range(2,8)), 0 ) + test_equal( Val.Range(2,7)->contains(Val.Range(3,8)), 0 ) + test_equal( Val.Range(2,7)->contains(Val.Range(3,7)), 1 ) + test_equal( Val.Range(2,7)->contains(6), 1 ) + test_equal( Val.Range(2,7)->contains(7), 0 ) + test_equal( Val.Range(2,7)->contains(2), 1 ) + test_equal( Val.Range(2,7)->contains(1), 0 ) +  + test_equal( Val.Range(2,7) << Val.Range(2,7), 0 ) + test_equal( Val.Range(2,7) << Val.Range(5,9), 0 ) + test_equal( Val.Range(2,7) << Val.Range(7,9), 1 ) + test_equal( Val.Range(2,7) << Val.Range(8,9), 1 ) + test_equal( Val.Range(2,7) >> Val.Range(2,7), 0 ) + test_equal( Val.Range(5,9) >> Val.Range(2,7), 0 ) + test_equal( Val.Range(7,9) >> Val.Range(2,7), 1 ) + test_equal( Val.Range(8,9) >> Val.Range(2,7), 1 ) +  + test_equal( (string)(Val.Range(2,4)->merge(Val.Range(7,10))), "[2\54""10\51" ) + test_equal( (string)(Val.Range(3,10)->merge(Val.Range(2,9))), "[2\54""10\51" ) + test_equal( (string)(Val.Range(2,10)->merge(Val.Range(4,9))), "[2\54""10\51" )   test_equal( (string)(Val.Range(2,7) + Val.Range(4,10)), "[2\54""10\51" )   test_equal( (string)(Val.Range(2,7) - Val.Range(4,10)), "[2\54""4\51" )   test_equal( (string)(Val.Range(2,7) * Val.Range(4,10)), "[4\54""7\51" )      test_equal( (string)Val.Range(Val.Date(2017,1,1), Val.Date(2017,1,2)),    "[2017/01/01\54""2017/01/02\51" )   test_equal( (string)Val.Range(Val.Date(2017,1,3), Val.Date(2017,1,2)), "empty" )   test_equal( (string)Val.Range(-Math.inf, Val.Date(2017,1,2)), "(,2017/01/02)" )      test_equal( (string)Val.Range(Val.Inet("1.2.3.2"), Val.Inet("1.2.3.4")),