pike.git / src / testsuite.in

version» Context lines:

pike.git/src/testsuite.in:7599:   test_eq(-0x123456780123, [[ decode_value(encode_value(-0x123456780123)) ]])   test_eq(-0x1234567801234, [[ decode_value(encode_value(-0x1234567801234))]])      test_eval_error([[ Debug.next ((mixed) decode_value (encode_value (Int.NATIVE_MAX))) ]])   test_eval_error([[ Debug.next ((mixed) decode_value (encode_value (Int.NATIVE_MIN))) ]])   test_do([[ Debug.next ((mixed) decode_value (encode_value (Int.NATIVE_MAX + 1))) ]])   test_do([[ Debug.next ((mixed) decode_value (encode_value (Int.NATIVE_MIN - 1))) ]])   test_eq(2147483648, -2147483648/-1)   test_eq(2147483648, -2147483648*-1)    - test_true([[ random(0x7fffffff)+1 ]]) - test_true([[ random(0x7ffffffff)+1 ]]) +    test_true([[ sqrt(0x7fffffff)+1 ]])   test_true([[ sqrt(0x7ffffffff)+1 ]])      test_true([[ catch { destruct((mixed)0x4783647824687234628462); } ]])      test_any_equal([[    array a = ({4711, 0x54325827a124*0x12348795482485425});    set_weak_flag (a, 1);    gc();    return set_weak_flag(a, 0);
pike.git/src/testsuite.in:11565:   // Tested in lib      // - query_num_arg   test_eq(lambda(int ... q) { return query_num_arg(); }(),0)   test_eq(lambda(int ... q) { return query_num_arg(); }(1),1)   test_eq(lambda(int ... q) { return query_num_arg(); }(1,1),2)   test_eq(lambda(int ... q) { return query_num_arg(); }(1,1,1),3)   test_eq(lambda(int ... q) { return query_num_arg(); }(1,1,1,1),4)      // - random - test_any([[int e,d;for(e=0;e<1000;e++){d=random(10); if(d<0 || d>=10) return 0;} return 1]],1) - test_eq([[ random( ({11,21,31,41}) ) % 10 ]], 1) - test_eq([[ random( ({11,21,31,41}) ) % 10 ]], 1) - test_eq([[ random( ({11,21,31,41}) ) % 10 ]], 1) - test_eq([[ random( ({11,21,31,41}) ) % 10 ]], 1) - test_eq([[ random( (<11,21,31,41>) ) % 10 ]], 1) - test_eq([[ random( (<11,21,31,41>) ) % 10 ]], 1) - test_eq([[ random( (<11,21,31,41>) ) % 10 ]], 1) - test_eq([[ random( (<11,21,31,41>) ) % 10 ]], 1) - test_eq([[ random( (<11,21,31,41>) ) % 10 ]], 1) - test_eq([[ random( (<11,21,31,41>) ) % 10 ]], 1) - test_eq([[ `-( @random( ([11:21,31:41]) )) ]], -10) - test_eq([[ `-( @random( ([11:21,31:41]) )) ]], -10) - test_eq([[ `-( @random( ([11:21,31:41]) )) ]], -10) - test_eq([[ `-( @random( ([11:21,31:41]) )) ]], -10) - test_eval_error([[ return random( ({}) ) ]]) - test_eval_error([[ return random( (<>) ) ]]) - test_eval_error([[ return random( ([]) ) ]]) - test_eq([[ random( class() { int _random() { return 17; }}()) ]], 17) - test_any([[ -  string x = "\377"*16; -  for(int i; i<100; i++) x &= random_string(16); -  return x; - ]], "\0"*16) - test_any([[ -  string x = "\377"*16; -  for(int i; i<100; i++) x &= ~random_string(16); -  return x; - ]], "\0"*16) + // Tested in Random      // - random_string - test_eq( sizeof(random_string(47)), 47 ) - test_eq( random_string(0), "" ) - test_eval_error( return random_string(-1); ) + // Tested in Random      // - readlink   // - remove_call_out      // - remove_include_path   // - remove_module_path   // - remove_program_path   // Tested in lib      // - replace