aboutsummaryrefslogtreecommitdiffstats
path: root/test/arraysort.ok
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2011-04-07 21:44:53 +0300
committerArnold D. Robbins <arnold@skeeve.com>2011-04-07 21:44:53 +0300
commitc0583c31b8d47bd55e9340e7434cf9ccf7336f6d (patch)
tree6d54ecc869334cafeaadaca562a54f1bd2b4d717 /test/arraysort.ok
parent00068b77275315c8c16e32c39af376dfcf5a2374 (diff)
downloadegawk-c0583c31b8d47bd55e9340e7434cf9ccf7336f6d.tar.gz
egawk-c0583c31b8d47bd55e9340e7434cf9ccf7336f6d.tar.bz2
egawk-c0583c31b8d47bd55e9340e7434cf9ccf7336f6d.zip
More improvements to array sorting.
Diffstat (limited to 'test/arraysort.ok')
-rw-r--r--test/arraysort.ok53
1 files changed, 51 insertions, 2 deletions
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