# pike.git / lib / modules / testsuite.in

 version » Context lines: 10204080filenone3

pike.git/lib/modules/testsuite.in:596:   test_eq([[ Array.reduce(`==, ({}), 1) ]], 1)   test_eq([[ Array.reduce(`<<, ({1,2,3,4,5})) ]], 1<<14)      test_eq([[ Array.rreduce(`>>, ({})) ]], 0)   test_eq([[ Array.rreduce(`==, ({}), 1) ]], 1)   test_eq([[ Array.rreduce(`<<, ({4,3,2,1})) ]], 1125899906842624)      test_equal(Array.shuffle(({})), ({}))   test_equal(Array.shuffle(({1})), ({1}))   test_any([[ -  random_seed(4711); +     array b = Array.shuffle(Array.enumerate(1000)); -  random_seed(4711); +     // There is a chance in 1000! (aprox. 4E2568) that this fails of    // natural causes. -  return equal(b, Array.shuffle(Array.enumerate(1000))) && -  !equal(Array.enumerate(1000),b); +  return !equal(b, Array.shuffle(Array.enumerate(1000)));   ]], 1);   test_true( equal(Array.enumerate(1000),sort(Array.shuffle(Array.enumerate(1000)))) )      dnl Array.search_array      test_equal( Array.sum_arrays( `+, ({}) ), ({}) )   test_equal( Array.sum_arrays( `+, enumerate(5), enumerate(5)), ({0,2,4,6,8}) )      test_equal(Array.sort_array(({})), ({}))   test_equal([[ Array.sort_array(enumerate(9), `<) ]], [[ enumerate(9,-1,8) ]])