annotate src/testdir/test_sort.vim @ 13203:eafbec5a9528

Added tag v8.0.1475 for changeset 2941a86f8aaa4438b064fb7704263b7b12b931e3
author Christian Brabandt <cb@256bit.org>
date Tue, 06 Feb 2018 23:00:07 +0100
parents 881564b89f9b
children f2ab259ef88a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7291
6ffc75d807bd commit https://github.com/vim/vim/commit/b00da1d6d1655cb6e415f84ecc3be5ff3b790811
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
1 " Test sort()
6ffc75d807bd commit https://github.com/vim/vim/commit/b00da1d6d1655cb6e415f84ecc3be5ff3b790811
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
2
8202
c16aa03d8db5 commit https://github.com/vim/vim/commit/0b962473ddc7cee3cb45253dea273573bcca9bf9
Christian Brabandt <cb@256bit.org>
parents: 7689
diff changeset
3 :func Compare1(a, b) abort
c16aa03d8db5 commit https://github.com/vim/vim/commit/0b962473ddc7cee3cb45253dea273573bcca9bf9
Christian Brabandt <cb@256bit.org>
parents: 7689
diff changeset
4 call sort(range(3), 'Compare2')
8208
c11aaa31a0ed commit https://github.com/vim/vim/commit/0bb6108eb4e1ecaed437bc507f514f5da7816d9e
Christian Brabandt <cb@256bit.org>
parents: 8202
diff changeset
5 return a:a - a:b
8202
c16aa03d8db5 commit https://github.com/vim/vim/commit/0b962473ddc7cee3cb45253dea273573bcca9bf9
Christian Brabandt <cb@256bit.org>
parents: 7689
diff changeset
6 :endfunc
c16aa03d8db5 commit https://github.com/vim/vim/commit/0b962473ddc7cee3cb45253dea273573bcca9bf9
Christian Brabandt <cb@256bit.org>
parents: 7689
diff changeset
7
c16aa03d8db5 commit https://github.com/vim/vim/commit/0b962473ddc7cee3cb45253dea273573bcca9bf9
Christian Brabandt <cb@256bit.org>
parents: 7689
diff changeset
8 :func Compare2(a, b) abort
8208
c11aaa31a0ed commit https://github.com/vim/vim/commit/0bb6108eb4e1ecaed437bc507f514f5da7816d9e
Christian Brabandt <cb@256bit.org>
parents: 8202
diff changeset
9 return a:a - a:b
8202
c16aa03d8db5 commit https://github.com/vim/vim/commit/0b962473ddc7cee3cb45253dea273573bcca9bf9
Christian Brabandt <cb@256bit.org>
parents: 7689
diff changeset
10 :endfunc
c16aa03d8db5 commit https://github.com/vim/vim/commit/0b962473ddc7cee3cb45253dea273573bcca9bf9
Christian Brabandt <cb@256bit.org>
parents: 7689
diff changeset
11
7291
6ffc75d807bd commit https://github.com/vim/vim/commit/b00da1d6d1655cb6e415f84ecc3be5ff3b790811
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
12 func Test_sort_strings()
6ffc75d807bd commit https://github.com/vim/vim/commit/b00da1d6d1655cb6e415f84ecc3be5ff3b790811
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
13 " numbers compared as strings
6ffc75d807bd commit https://github.com/vim/vim/commit/b00da1d6d1655cb6e415f84ecc3be5ff3b790811
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
14 call assert_equal([1, 2, 3], sort([3, 2, 1]))
6ffc75d807bd commit https://github.com/vim/vim/commit/b00da1d6d1655cb6e415f84ecc3be5ff3b790811
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
15 call assert_equal([13, 28, 3], sort([3, 28, 13]))
6ffc75d807bd commit https://github.com/vim/vim/commit/b00da1d6d1655cb6e415f84ecc3be5ff3b790811
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
16 endfunc
6ffc75d807bd commit https://github.com/vim/vim/commit/b00da1d6d1655cb6e415f84ecc3be5ff3b790811
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
17
6ffc75d807bd commit https://github.com/vim/vim/commit/b00da1d6d1655cb6e415f84ecc3be5ff3b790811
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
18 func Test_sort_numeric()
6ffc75d807bd commit https://github.com/vim/vim/commit/b00da1d6d1655cb6e415f84ecc3be5ff3b790811
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
19 call assert_equal([1, 2, 3], sort([3, 2, 1], 'n'))
6ffc75d807bd commit https://github.com/vim/vim/commit/b00da1d6d1655cb6e415f84ecc3be5ff3b790811
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
20 call assert_equal([3, 13, 28], sort([13, 28, 3], 'n'))
6ffc75d807bd commit https://github.com/vim/vim/commit/b00da1d6d1655cb6e415f84ecc3be5ff3b790811
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
21 " strings are not sorted
6ffc75d807bd commit https://github.com/vim/vim/commit/b00da1d6d1655cb6e415f84ecc3be5ff3b790811
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
22 call assert_equal(['13', '28', '3'], sort(['13', '28', '3'], 'n'))
6ffc75d807bd commit https://github.com/vim/vim/commit/b00da1d6d1655cb6e415f84ecc3be5ff3b790811
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
23 endfunc
6ffc75d807bd commit https://github.com/vim/vim/commit/b00da1d6d1655cb6e415f84ecc3be5ff3b790811
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
24
6ffc75d807bd commit https://github.com/vim/vim/commit/b00da1d6d1655cb6e415f84ecc3be5ff3b790811
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
25 func Test_sort_numbers()
6ffc75d807bd commit https://github.com/vim/vim/commit/b00da1d6d1655cb6e415f84ecc3be5ff3b790811
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
26 call assert_equal([3, 13, 28], sort([13, 28, 3], 'N'))
6ffc75d807bd commit https://github.com/vim/vim/commit/b00da1d6d1655cb6e415f84ecc3be5ff3b790811
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
27 call assert_equal(['3', '13', '28'], sort(['13', '28', '3'], 'N'))
6ffc75d807bd commit https://github.com/vim/vim/commit/b00da1d6d1655cb6e415f84ecc3be5ff3b790811
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
28 endfunc
7689
20dc2763a3b9 commit https://github.com/vim/vim/commit/f7edf40448a09e04eec3bd05e043f7fea93b07c9
Christian Brabandt <cb@256bit.org>
parents: 7291
diff changeset
29
20dc2763a3b9 commit https://github.com/vim/vim/commit/f7edf40448a09e04eec3bd05e043f7fea93b07c9
Christian Brabandt <cb@256bit.org>
parents: 7291
diff changeset
30 func Test_sort_float()
20dc2763a3b9 commit https://github.com/vim/vim/commit/f7edf40448a09e04eec3bd05e043f7fea93b07c9
Christian Brabandt <cb@256bit.org>
parents: 7291
diff changeset
31 call assert_equal([0.28, 3, 13.5], sort([13.5, 0.28, 3], 'f'))
20dc2763a3b9 commit https://github.com/vim/vim/commit/f7edf40448a09e04eec3bd05e043f7fea93b07c9
Christian Brabandt <cb@256bit.org>
parents: 7291
diff changeset
32 endfunc
8202
c16aa03d8db5 commit https://github.com/vim/vim/commit/0b962473ddc7cee3cb45253dea273573bcca9bf9
Christian Brabandt <cb@256bit.org>
parents: 7689
diff changeset
33
c16aa03d8db5 commit https://github.com/vim/vim/commit/0b962473ddc7cee3cb45253dea273573bcca9bf9
Christian Brabandt <cb@256bit.org>
parents: 7689
diff changeset
34 func Test_sort_nested()
c16aa03d8db5 commit https://github.com/vim/vim/commit/0b962473ddc7cee3cb45253dea273573bcca9bf9
Christian Brabandt <cb@256bit.org>
parents: 7689
diff changeset
35 " test ability to call sort() from a compare function
c16aa03d8db5 commit https://github.com/vim/vim/commit/0b962473ddc7cee3cb45253dea273573bcca9bf9
Christian Brabandt <cb@256bit.org>
parents: 7689
diff changeset
36 call assert_equal([1, 3, 5], sort([3, 1, 5], 'Compare1'))
c16aa03d8db5 commit https://github.com/vim/vim/commit/0b962473ddc7cee3cb45253dea273573bcca9bf9
Christian Brabandt <cb@256bit.org>
parents: 7689
diff changeset
37 endfunc
8344
2aa24f702b8d commit https://github.com/vim/vim/commit/5131c144feb046c5e2b72e6c172159d80ce06b3c
Christian Brabandt <cb@256bit.org>
parents: 8208
diff changeset
38
2aa24f702b8d commit https://github.com/vim/vim/commit/5131c144feb046c5e2b72e6c172159d80ce06b3c
Christian Brabandt <cb@256bit.org>
parents: 8208
diff changeset
39 func Test_sort_default()
2aa24f702b8d commit https://github.com/vim/vim/commit/5131c144feb046c5e2b72e6c172159d80ce06b3c
Christian Brabandt <cb@256bit.org>
parents: 8208
diff changeset
40 " docs say omitted, empty or zero argument sorts on string representation.
8352
2c40b40c3220 commit https://github.com/vim/vim/commit/51d1d536802b5d8232d47e56f165ba8a009529b5
Christian Brabandt <cb@256bit.org>
parents: 8344
diff changeset
41 call assert_equal(['2', 'A', 'AA', 'a', 1, 3.3], sort([3.3, 1, "2", "A", "a", "AA"]))
2c40b40c3220 commit https://github.com/vim/vim/commit/51d1d536802b5d8232d47e56f165ba8a009529b5
Christian Brabandt <cb@256bit.org>
parents: 8344
diff changeset
42 call assert_equal(['2', 'A', 'AA', 'a', 1, 3.3], sort([3.3, 1, "2", "A", "a", "AA"], ''))
2c40b40c3220 commit https://github.com/vim/vim/commit/51d1d536802b5d8232d47e56f165ba8a009529b5
Christian Brabandt <cb@256bit.org>
parents: 8344
diff changeset
43 call assert_equal(['2', 'A', 'AA', 'a', 1, 3.3], sort([3.3, 1, "2", "A", "a", "AA"], 0))
2c40b40c3220 commit https://github.com/vim/vim/commit/51d1d536802b5d8232d47e56f165ba8a009529b5
Christian Brabandt <cb@256bit.org>
parents: 8344
diff changeset
44 call assert_equal(['2', 'A', 'a', 'AA', 1, 3.3], sort([3.3, 1, "2", "A", "a", "AA"], 1))
8344
2aa24f702b8d commit https://github.com/vim/vim/commit/5131c144feb046c5e2b72e6c172159d80ce06b3c
Christian Brabandt <cb@256bit.org>
parents: 8208
diff changeset
45 call assert_fails('call sort([3.3, 1, "2"], 3)', "E474")
2aa24f702b8d commit https://github.com/vim/vim/commit/5131c144feb046c5e2b72e6c172159d80ce06b3c
Christian Brabandt <cb@256bit.org>
parents: 8208
diff changeset
46 endfunc
12523
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
47
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
48 " Tests for the :sort command
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
49 func Test_sort_cmd()
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
50 let tests = [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
51 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
52 \ 'name' : 'Alphabetical sort',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
53 \ 'cmd' : '%sort',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
54 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
55 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
56 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
57 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
58 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
59 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
60 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
61 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
62 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
63 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
64 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
65 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
66 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
67 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
68 \ 'b321b'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
69 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
70 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
71 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
72 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
73 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
74 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
75 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
76 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
77 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
78 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
79 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
80 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
81 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
82 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
83 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
84 \ 'c321d'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
85 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
86 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
87 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
88 \ 'name' : 'Numeric sort',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
89 \ 'cmd' : '%sort n',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
90 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
91 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
92 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
93 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
94 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
95 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
96 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
97 \ 'x-22',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
98 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
99 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
100 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
101 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
102 \ '-24',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
103 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
104 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
105 \ '0',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
106 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
107 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
108 \ 'b321b'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
109 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
110 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
111 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
112 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
113 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
114 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
115 \ '-24',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
116 \ 'x-22',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
117 \ '0',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
118 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
119 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
120 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
121 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
122 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
123 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
124 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
125 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
126 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
127 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
128 \ 'b322b'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
129 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
130 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
131 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
132 \ 'name' : 'Hexadecimal sort',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
133 \ 'cmd' : '%sort x',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
134 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
135 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
136 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
137 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
138 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
139 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
140 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
141 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
142 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
143 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
144 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
145 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
146 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
147 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
148 \ 'b321b'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
149 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
150 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
151 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
152 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
153 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
154 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
155 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
156 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
157 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
158 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
159 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
160 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
161 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
162 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
163 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
164 \ 'c321d'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
165 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
166 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
167 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
168 \ 'name' : 'Alphabetical unique sort',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
169 \ 'cmd' : '%sort u',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
170 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
171 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
172 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
173 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
174 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
175 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
176 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
177 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
178 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
179 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
180 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
181 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
182 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
183 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
184 \ 'b321b'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
185 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
186 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
187 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
188 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
189 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
190 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
191 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
192 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
193 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
194 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
195 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
196 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
197 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
198 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
199 \ 'c321d'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
200 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
201 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
202 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
203 \ 'name' : 'Alphabetical reverse sort',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
204 \ 'cmd' : '%sort!',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
205 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
206 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
207 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
208 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
209 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
210 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
211 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
212 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
213 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
214 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
215 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
216 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
217 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
218 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
219 \ 'b321b'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
220 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
221 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
222 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
223 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
224 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
225 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
226 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
227 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
228 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
229 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
230 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
231 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
232 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
233 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
234 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
235 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
236 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
237 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
238 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
239 \ 'name' : 'Numeric reverse sort',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
240 \ 'cmd' : '%sort! n',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
241 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
242 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
243 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
244 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
245 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
246 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
247 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
248 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
249 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
250 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
251 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
252 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
253 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
254 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
255 \ 'b321b'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
256 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
257 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
258 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
259 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
260 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
261 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
262 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
263 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
264 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
265 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
266 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
267 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
268 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
269 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
270 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
271 \ 'abc'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
272 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
273 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
274 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
275 \ 'name' : 'Unique reverse sort',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
276 \ 'cmd' : 'sort! u',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
277 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
278 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
279 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
280 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
281 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
282 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
283 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
284 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
285 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
286 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
287 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
288 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
289 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
290 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
291 \ 'b321b'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
292 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
293 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
294 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
295 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
296 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
297 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
298 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
299 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
300 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
301 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
302 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
303 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
304 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
305 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
306 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
307 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
308 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
309 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
310 \ 'name' : 'Octal sort',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
311 \ 'cmd' : 'sort o',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
312 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
313 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
314 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
315 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
316 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
317 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
318 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
319 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
320 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
321 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
322 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
323 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
324 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
325 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
326 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
327 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
328 \ ''
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
329 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
330 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
331 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
332 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
333 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
334 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
335 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
336 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
337 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
338 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
339 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
340 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
341 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
342 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
343 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
344 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
345 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
346 \ 'b322b'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
347 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
348 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
349 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
350 \ 'name' : 'Reverse hexadecimal sort',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
351 \ 'cmd' : 'sort! x',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
352 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
353 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
354 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
355 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
356 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
357 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
358 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
359 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
360 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
361 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
362 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
363 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
364 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
365 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
366 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
367 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
368 \ ''
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
369 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
370 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
371 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
372 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
373 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
374 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
375 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
376 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
377 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
378 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
379 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
380 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
381 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
382 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
383 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
384 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
385 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
386 \ ''
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
387 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
388 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
389 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
390 \ 'name' : 'Alpha (skip first character) sort',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
391 \ 'cmd' : 'sort/./',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
392 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
393 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
394 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
395 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
396 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
397 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
398 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
399 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
400 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
401 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
402 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
403 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
404 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
405 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
406 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
407 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
408 \ ''
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
409 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
410 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
411 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
412 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
413 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
414 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
415 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
416 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
417 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
418 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
419 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
420 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
421 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
422 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
423 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
424 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
425 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
426 \ 'abc'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
427 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
428 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
429 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
430 \ 'name' : 'Alpha (skip first 2 characters) sort',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
431 \ 'cmd' : 'sort/../',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
432 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
433 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
434 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
435 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
436 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
437 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
438 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
439 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
440 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
441 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
442 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
443 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
444 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
445 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
446 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
447 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
448 \ ''
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
449 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
450 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
451 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
452 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
453 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
454 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
455 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
456 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
457 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
458 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
459 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
460 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
461 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
462 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
463 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
464 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
465 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
466 \ 'abc'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
467 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
468 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
469 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
470 \ 'name' : 'alpha, unique, skip first 2 characters',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
471 \ 'cmd' : 'sort/../u',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
472 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
473 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
474 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
475 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
476 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
477 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
478 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
479 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
480 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
481 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
482 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
483 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
484 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
485 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
486 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
487 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
488 \ ''
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
489 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
490 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
491 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
492 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
493 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
494 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
495 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
496 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
497 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
498 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
499 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
500 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
501 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
502 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
503 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
504 \ 'abc'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
505 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
506 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
507 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
508 \ 'name' : 'numeric, skip first character',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
509 \ 'cmd' : 'sort/./n',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
510 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
511 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
512 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
513 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
514 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
515 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
516 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
517 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
518 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
519 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
520 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
521 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
522 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
523 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
524 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
525 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
526 \ ''
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
527 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
528 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
529 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
530 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
531 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
532 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
533 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
534 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
535 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
536 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
537 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
538 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
539 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
540 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
541 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
542 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
543 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
544 \ 'b322b'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
545 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
546 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
547 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
548 \ 'name' : 'alpha, sort on first character',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
549 \ 'cmd' : 'sort/./r',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
550 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
551 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
552 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
553 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
554 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
555 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
556 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
557 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
558 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
559 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
560 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
561 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
562 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
563 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
564 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
565 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
566 \ ''
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
567 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
568 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
569 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
570 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
571 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
572 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
573 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
574 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
575 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
576 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
577 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
578 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
579 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
580 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
581 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
582 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
583 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
584 \ 'c321d'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
585 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
586 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
587 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
588 \ 'name' : 'alpha, sort on first 2 characters',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
589 \ 'cmd' : 'sort/../r',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
590 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
591 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
592 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
593 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
594 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
595 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
596 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
597 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
598 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
599 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
600 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
601 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
602 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
603 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
604 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
605 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
606 \ ''
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
607 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
608 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
609 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
610 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
611 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
612 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
613 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
614 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
615 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
616 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
617 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
618 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
619 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
620 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
621 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
622 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
623 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
624 \ 'c321d'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
625 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
626 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
627 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
628 \ 'name' : 'numeric, sort on first character',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
629 \ 'cmd' : 'sort/./rn',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
630 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
631 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
632 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
633 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
634 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
635 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
636 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
637 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
638 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
639 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
640 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
641 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
642 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
643 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
644 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
645 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
646 \ ''
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
647 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
648 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
649 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
650 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
651 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
652 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
653 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
654 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
655 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
656 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
657 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
658 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
659 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
660 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
661 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
662 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
663 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
664 \ ''
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
665 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
666 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
667 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
668 \ 'name' : 'alpha, skip past first digit',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
669 \ 'cmd' : 'sort/\d/',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
670 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
671 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
672 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
673 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
674 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
675 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
676 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
677 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
678 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
679 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
680 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
681 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
682 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
683 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
684 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
685 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
686 \ ''
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
687 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
688 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
689 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
690 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
691 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
692 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
693 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
694 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
695 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
696 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
697 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
698 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
699 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
700 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
701 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
702 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
703 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
704 \ 'c123d'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
705 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
706 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
707 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
708 \ 'name' : 'alpha, sort on first digit',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
709 \ 'cmd' : 'sort/\d/r',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
710 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
711 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
712 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
713 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
714 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
715 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
716 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
717 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
718 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
719 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
720 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
721 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
722 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
723 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
724 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
725 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
726 \ ''
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
727 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
728 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
729 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
730 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
731 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
732 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
733 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
734 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
735 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
736 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
737 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
738 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
739 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
740 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
741 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
742 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
743 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
744 \ 'b321b'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
745 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
746 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
747 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
748 \ 'name' : 'numeric, skip past first digit',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
749 \ 'cmd' : 'sort/\d/n',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
750 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
751 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
752 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
753 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
754 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
755 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
756 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
757 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
758 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
759 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
760 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
761 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
762 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
763 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
764 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
765 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
766 \ ''
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
767 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
768 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
769 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
770 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
771 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
772 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
773 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
774 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
775 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
776 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
777 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
778 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
779 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
780 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
781 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
782 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
783 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
784 \ ' 123b'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
785 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
786 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
787 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
788 \ 'name' : 'numeric, sort on first digit',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
789 \ 'cmd' : 'sort/\d/rn',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
790 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
791 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
792 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
793 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
794 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
795 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
796 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
797 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
798 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
799 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
800 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
801 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
802 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
803 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
804 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
805 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
806 \ ''
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
807 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
808 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
809 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
810 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
811 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
812 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
813 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
814 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
815 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
816 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
817 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
818 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
819 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
820 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
821 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
822 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
823 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
824 \ 'b321b'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
825 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
826 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
827 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
828 \ 'name' : 'alpha, skip past first 2 digits',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
829 \ 'cmd' : 'sort/\d\d/',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
830 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
831 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
832 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
833 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
834 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
835 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
836 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
837 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
838 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
839 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
840 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
841 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
842 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
843 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
844 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
845 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
846 \ ''
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
847 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
848 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
849 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
850 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
851 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
852 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
853 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
854 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
855 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
856 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
857 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
858 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
859 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
860 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
861 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
862 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
863 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
864 \ 'c123d'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
865 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
866 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
867 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
868 \ 'name' : 'numeric, skip past first 2 digits',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
869 \ 'cmd' : 'sort/\d\d/n',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
870 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
871 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
872 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
873 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
874 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
875 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
876 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
877 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
878 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
879 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
880 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
881 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
882 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
883 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
884 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
885 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
886 \ ''
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
887 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
888 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
889 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
890 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
891 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
892 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
893 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
894 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
895 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
896 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
897 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
898 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
899 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
900 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
901 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
902 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
903 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
904 \ ' 123b'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
905 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
906 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
907 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
908 \ 'name' : 'hexadecimal, skip past first 2 digits',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
909 \ 'cmd' : 'sort/\d\d/x',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
910 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
911 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
912 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
913 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
914 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
915 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
916 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
917 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
918 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
919 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
920 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
921 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
922 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
923 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
924 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
925 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
926 \ ''
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
927 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
928 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
929 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
930 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
931 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
932 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
933 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
934 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
935 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
936 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
937 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
938 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
939 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
940 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
941 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
942 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
943 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
944 \ 'c123d'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
945 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
946 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
947 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
948 \ 'name' : 'alpha, sort on first 2 digits',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
949 \ 'cmd' : 'sort/\d\d/r',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
950 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
951 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
952 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
953 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
954 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
955 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
956 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
957 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
958 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
959 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
960 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
961 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
962 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
963 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
964 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
965 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
966 \ ''
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
967 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
968 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
969 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
970 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
971 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
972 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
973 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
974 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
975 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
976 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
977 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
978 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
979 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
980 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
981 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
982 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
983 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
984 \ 'b321b'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
985 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
986 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
987 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
988 \ 'name' : 'numeric, sort on first 2 digits',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
989 \ 'cmd' : 'sort/\d\d/rn',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
990 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
991 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
992 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
993 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
994 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
995 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
996 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
997 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
998 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
999 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1000 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1001 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1002 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1003 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1004 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1005 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1006 \ ''
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1007 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1008 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1009 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1010 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1011 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1012 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1013 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1014 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1015 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1016 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1017 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1018 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1019 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1020 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1021 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1022 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1023 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1024 \ 'b321b'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1025 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1026 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1027 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1028 \ 'name' : 'hexadecimal, sort on first 2 digits',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1029 \ 'cmd' : 'sort/\d\d/rx',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1030 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1031 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1032 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1033 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1034 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1035 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1036 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1037 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1038 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1039 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1040 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1041 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1042 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1043 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1044 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1045 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1046 \ ''
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1047 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1048 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1049 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1050 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1051 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1052 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1053 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1054 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1055 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1056 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1057 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1058 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1059 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1060 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1061 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1062 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1063 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1064 \ 'b321b'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1065 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1066 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1067 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1068 \ 'name' : 'binary',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1069 \ 'cmd' : 'sort b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1070 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1071 \ '0b111000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1072 \ '0b101100',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1073 \ '0b101001',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1074 \ '0b101001',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1075 \ '0b101000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1076 \ '0b000000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1077 \ '0b001000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1078 \ '0b010000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1079 \ '0b101000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1080 \ '0b100000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1081 \ '0b101010',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1082 \ '0b100010',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1083 \ '0b100100',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1084 \ '0b100010',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1085 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1086 \ ''
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1087 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1088 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1089 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1090 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1091 \ '0b000000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1092 \ '0b001000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1093 \ '0b010000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1094 \ '0b100000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1095 \ '0b100010',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1096 \ '0b100010',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1097 \ '0b100100',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1098 \ '0b101000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1099 \ '0b101000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1100 \ '0b101001',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1101 \ '0b101001',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1102 \ '0b101010',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1103 \ '0b101100',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1104 \ '0b111000'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1105 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1106 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1107 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1108 \ 'name' : 'binary with leading characters',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1109 \ 'cmd' : 'sort b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1110 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1111 \ '0b100010',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1112 \ '0b010000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1113 \ ' 0b101001',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1114 \ 'b0b101100',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1115 \ '0b100010',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1116 \ ' 0b100100',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1117 \ 'a0b001000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1118 \ '0b101000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1119 \ '0b101000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1120 \ 'a0b101001',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1121 \ 'ab0b100000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1122 \ '0b101010',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1123 \ '0b000000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1124 \ 'b0b111000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1125 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1126 \ ''
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1127 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1128 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1129 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1130 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1131 \ '0b000000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1132 \ 'a0b001000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1133 \ '0b010000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1134 \ 'ab0b100000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1135 \ '0b100010',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1136 \ '0b100010',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1137 \ ' 0b100100',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1138 \ '0b101000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1139 \ '0b101000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1140 \ ' 0b101001',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1141 \ 'a0b101001',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1142 \ '0b101010',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1143 \ 'b0b101100',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1144 \ 'b0b111000'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1145 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1146 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1147 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1148 \ 'name' : 'float',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1149 \ 'cmd' : 'sort f',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1150 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1151 \ '1.234',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1152 \ '0.88',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1153 \ '123.456',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1154 \ '1.15e-6',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1155 \ '-1.1e3',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1156 \ '-1.01e3',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1157 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1158 \ ''
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1159 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1160 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1161 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1162 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1163 \ '-1.1e3',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1164 \ '-1.01e3',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1165 \ '1.15e-6',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1166 \ '0.88',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1167 \ '1.234',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1168 \ '123.456'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1169 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1170 \ }
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1171 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1172
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1173 for t in tests
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1174 enew!
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1175 call append(0, t.input)
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1176 $delete _
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1177 exe t.cmd
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1178 call assert_equal(t.expected, getline(1, '$'), t.name)
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1179 endfor
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1180
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1181 call assert_fails('sort no', 'E474')
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1182
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1183 enew!
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1184 endfunc