Branch: Tag:

2004-09-25

2004-09-25 02:51:20 by Thomas Gusenleitner <Thomas.Gusenleitner@com-bet.com>

Fixed sorting of columns typed num. Thanks to Thomas Gusenleitner

Rev: lib/modules/ADT.pmod/Table.pmod:1.28
Rev: lib/modules/ADT.pmod/testsuite.in:1.17

1:   START_MARKER - dnl $Id: testsuite.in,v 1.16 2004/06/20 23:23:04 nilsson Exp $ + dnl $Id: testsuite.in,v 1.17 2004/09/25 02:51:20 nilsson Exp $      dnl - ADT.BitBuffer   
333:      dnl - ADT.Table    - test_true(ADT.Table.table( + test_equal(ADT.Table.table(    ({ ({ "a", "b", 42 }),    ({ "c", "b", 41 }),    ({ "a", "a", 76 }) }),
342:    ({ ({ "a", 118 }),    ({ "c", 41 }) }))    + test_equal(ADT.Table.table( +  ({ ({ "a", "5.3" }), +  ({ "b", "5.1" }), +  ({ "c", "4711" }) }), ({ "one", "two" }), +  ({ (["type":"text"]), (["type":"num"]) }))->sort("two")->cast("array"), +  ({ ({ "b", "5.1" }), +  ({ "a", "5.3" }), +  ({ "c", "4711" }) }))    -  +    dnl - ADT.struct      define(test_put,[[