pike.git / lib / modules / testsuite.in

version» Context lines:

pike.git/lib/modules/testsuite.in:1: - dnl $Id: testsuite.in,v 1.25 2004/03/20 16:30:11 grubba Exp $ + dnl $Id: testsuite.in,v 1.26 2004/04/06 13:25:56 nilsson Exp $      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 }) }) }))   test_equal(Array.diff(({ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }),
pike.git/lib/modules/testsuite.in:262:    ({({"b"}),({"a"}),({ })})}))   test_equal(Array.diff3(({"a","c"}),({"a","c","b","a"}),({"b","a","c"})),    ({({({ }),({"a","c"}),({ })}),    ({({ }),({"a","c"}),({"b","a"})}),    ({({"b"}),({"a","c"}),({ })})}))   test_equal(Array.diff3(({"a","c","b","a"}),({"a","c"}),({"b","a","c"})),    ({({({ }),({"a","c"}),({"b","a"})}),    ({({ }),({"a","c"}),({ })}),    ({({"b"}),({"a","c"}),({ })})}))    - dnl Array.diff3_old -  +    define(test_sort,[[    test_eq(Array.$1($2,$3), -1)    test_eq(Array.$1($3,$2), 1)   ]])      test_false(Array.dwim_sort_func("",""))   test_sort(dwim_sort_func,"1","a")   test_sort(dwim_sort_func,"1","1a")   test_sort(dwim_sort_func,"0a","1")   test_sort(dwim_sort_func,"1","2")