Branch: Tag:

2007-12-27

2007-12-27 00:51:47 by Martin Nilsson <mani@lysator.liu.se>

Dwim sort now twice as fast.

Rev: lib/modules/Array.pmod:1.105
Rev: lib/modules/testsuite.in:1.39

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   
289:   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)   
297:   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}) )