pike.git / lib / modules / testsuite.in

version» Context lines:

pike.git/lib/modules/testsuite.in:1: - dnl $Id: testsuite.in,v 1.38 2007/10/06 16:23:39 grubba Exp $ + dnl $Id: testsuite.in,v 1.39 2007/12/27 00:51:47 nilsson Exp $      START_MARKER      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 }),
pike.git/lib/modules/testsuite.in:282:    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")   test_sort(dwim_sort_func,"2a","10") + test_sort(dwim_sort_func,"a1x","a02x")   test_eq(Array.dwim_sort_func("1","1"), 0)   test_eq(Array.dwim_sort_func("1","01"), 0)      test_false(Array.lyskom_sort_func("",""))   test_sort(lyskom_sort_func,"a","b")   test_false(Array.lyskom_sort_func("a","a"))   test_false(Array.lyskom_sort_func("Foo (bar)","foo (really!)"))    - dnl Array.lyskom_sort_func -  +    test_eq( Array.flatten( ({}) ), ({}) )   test_equal( Array.flatten( ({1,({2,({3,({4}),({}),5})}),({({}),({6})})})),    ({1,2,3,4,5,6}) )   test_equal( Array.flatten( ({ 1,({2,3}),4,({2,3}),5 }) ), ({1,2,3,4,2,3,5}) )   test_any_equal([[    array a=({1,2,3});    a[1]=a;    return Array.flatten(a);   ]], ({1,3}))   test_any_equal([[