From c0583c31b8d47bd55e9340e7434cf9ccf7336f6d Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Thu, 7 Apr 2011 21:44:53 +0300 Subject: More improvements to array sorting. --- test/arraysort.ok | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 51 insertions(+), 2 deletions(-) (limited to 'test/arraysort.ok') diff --git a/test/arraysort.ok b/test/arraysort.ok index 2306e8a9..bf48ecda 100644 --- a/test/arraysort.ok +++ b/test/arraysort.ok @@ -1,13 +1,62 @@ +--- test1 --- + 5 5 + 10 10 + 3D 3D +--- test2 --- x 1 y 1 1 1 100 1 +--- test3 --- x 1 -y 1 1 1 100 1 +--- test4 --- 0 1 x 1 -y 1 1 1 100 1 +--- test5 --- + 1 +0 1 +y 1 +--- test6 --- +"1" +"2" +"3 " +"4" +--- test7 --- +--asc ind str-- +| 3| 3 +| 4 | 4 +|0|0 +|1|1 +|2|2 +|3|3 +|3D|3D +|4|4 +|5|5 +|D3|D3 +--asc ind num-- +|0|0 +|D3|D3 +|1|1 +|2|2 +| 3| 3 +|3|3 +|3D|3D +| 4 | 4 +|4|4 +|5|5 +--asc val num-- +gawk: arraysort.awk:79: warning: `PROCINFO["sorted_in"]': sorting by value can't be forced to use numeric comparison +|4|4 +|5|5 +|D3|D3 +|3D|3D +| 3| 3 +|0|0 +|1|1 +|2|2 +|3|3 +| 4 | 4 -- cgit v1.2.3