annotate src/testdir/test_sort.vim @ 19925:8c9845101214

Added tag v8.2.0518 for changeset 851b9af01aad350fba91c8458c11948bdf3722bc
author Bram Moolenaar <Bram@vim.org>
date Sun, 05 Apr 2020 21:45:27 +0200
parents fdfe44ac6a1a
children e82996ad131f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
14206
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1 " Tests for the "sort()" function and for the ":sort" command.
7291
6ffc75d807bd commit https://github.com/vim/vim/commit/b00da1d6d1655cb6e415f84ecc3be5ff3b790811
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
2
19249
2a017e9dc6da patch 8.2.0183: tests fail when the float feature is disabled
Bram Moolenaar <Bram@vim.org>
parents: 19231
diff changeset
3 source check.vim
2a017e9dc6da patch 8.2.0183: tests fail when the float feature is disabled
Bram Moolenaar <Bram@vim.org>
parents: 19231
diff changeset
4
14206
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
5 func Compare1(a, b) abort
8202
c16aa03d8db5 commit https://github.com/vim/vim/commit/0b962473ddc7cee3cb45253dea273573bcca9bf9
Christian Brabandt <cb@256bit.org>
parents: 7689
diff changeset
6 call sort(range(3), 'Compare2')
8208
c11aaa31a0ed commit https://github.com/vim/vim/commit/0bb6108eb4e1ecaed437bc507f514f5da7816d9e
Christian Brabandt <cb@256bit.org>
parents: 8202
diff changeset
7 return a:a - a:b
14206
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
8 endfunc
8202
c16aa03d8db5 commit https://github.com/vim/vim/commit/0b962473ddc7cee3cb45253dea273573bcca9bf9
Christian Brabandt <cb@256bit.org>
parents: 7689
diff changeset
9
14206
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
10 func Compare2(a, b) abort
8208
c11aaa31a0ed commit https://github.com/vim/vim/commit/0bb6108eb4e1ecaed437bc507f514f5da7816d9e
Christian Brabandt <cb@256bit.org>
parents: 8202
diff changeset
11 return a:a - a:b
14206
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
12 endfunc
8202
c16aa03d8db5 commit https://github.com/vim/vim/commit/0b962473ddc7cee3cb45253dea273573bcca9bf9
Christian Brabandt <cb@256bit.org>
parents: 7689
diff changeset
13
7291
6ffc75d807bd commit https://github.com/vim/vim/commit/b00da1d6d1655cb6e415f84ecc3be5ff3b790811
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
14 func Test_sort_strings()
6ffc75d807bd commit https://github.com/vim/vim/commit/b00da1d6d1655cb6e415f84ecc3be5ff3b790811
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
15 " numbers compared as strings
6ffc75d807bd commit https://github.com/vim/vim/commit/b00da1d6d1655cb6e415f84ecc3be5ff3b790811
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
16 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
17 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
18 endfunc
6ffc75d807bd commit https://github.com/vim/vim/commit/b00da1d6d1655cb6e415f84ecc3be5ff3b790811
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
19
6ffc75d807bd commit https://github.com/vim/vim/commit/b00da1d6d1655cb6e415f84ecc3be5ff3b790811
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
20 func Test_sort_numeric()
6ffc75d807bd commit https://github.com/vim/vim/commit/b00da1d6d1655cb6e415f84ecc3be5ff3b790811
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
21 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
22 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
23 " strings are not sorted
6ffc75d807bd commit https://github.com/vim/vim/commit/b00da1d6d1655cb6e415f84ecc3be5ff3b790811
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
24 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
25 endfunc
6ffc75d807bd commit https://github.com/vim/vim/commit/b00da1d6d1655cb6e415f84ecc3be5ff3b790811
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
26
6ffc75d807bd commit https://github.com/vim/vim/commit/b00da1d6d1655cb6e415f84ecc3be5ff3b790811
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
27 func Test_sort_numbers()
6ffc75d807bd commit https://github.com/vim/vim/commit/b00da1d6d1655cb6e415f84ecc3be5ff3b790811
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
28 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
29 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
30 endfunc
7689
20dc2763a3b9 commit https://github.com/vim/vim/commit/f7edf40448a09e04eec3bd05e043f7fea93b07c9
Christian Brabandt <cb@256bit.org>
parents: 7291
diff changeset
31
20dc2763a3b9 commit https://github.com/vim/vim/commit/f7edf40448a09e04eec3bd05e043f7fea93b07c9
Christian Brabandt <cb@256bit.org>
parents: 7291
diff changeset
32 func Test_sort_float()
19249
2a017e9dc6da patch 8.2.0183: tests fail when the float feature is disabled
Bram Moolenaar <Bram@vim.org>
parents: 19231
diff changeset
33 CheckFeature float
7689
20dc2763a3b9 commit https://github.com/vim/vim/commit/f7edf40448a09e04eec3bd05e043f7fea93b07c9
Christian Brabandt <cb@256bit.org>
parents: 7291
diff changeset
34 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
35 endfunc
8202
c16aa03d8db5 commit https://github.com/vim/vim/commit/0b962473ddc7cee3cb45253dea273573bcca9bf9
Christian Brabandt <cb@256bit.org>
parents: 7689
diff changeset
36
c16aa03d8db5 commit https://github.com/vim/vim/commit/0b962473ddc7cee3cb45253dea273573bcca9bf9
Christian Brabandt <cb@256bit.org>
parents: 7689
diff changeset
37 func Test_sort_nested()
c16aa03d8db5 commit https://github.com/vim/vim/commit/0b962473ddc7cee3cb45253dea273573bcca9bf9
Christian Brabandt <cb@256bit.org>
parents: 7689
diff changeset
38 " 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
39 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
40 endfunc
8344
2aa24f702b8d commit https://github.com/vim/vim/commit/5131c144feb046c5e2b72e6c172159d80ce06b3c
Christian Brabandt <cb@256bit.org>
parents: 8208
diff changeset
41
2aa24f702b8d commit https://github.com/vim/vim/commit/5131c144feb046c5e2b72e6c172159d80ce06b3c
Christian Brabandt <cb@256bit.org>
parents: 8208
diff changeset
42 func Test_sort_default()
19249
2a017e9dc6da patch 8.2.0183: tests fail when the float feature is disabled
Bram Moolenaar <Bram@vim.org>
parents: 19231
diff changeset
43 CheckFeature float
2a017e9dc6da patch 8.2.0183: tests fail when the float feature is disabled
Bram Moolenaar <Bram@vim.org>
parents: 19231
diff changeset
44
8344
2aa24f702b8d commit https://github.com/vim/vim/commit/5131c144feb046c5e2b72e6c172159d80ce06b3c
Christian Brabandt <cb@256bit.org>
parents: 8208
diff changeset
45 " 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
46 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
47 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
48 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
49 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
50 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
51 endfunc
12523
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
52
14206
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
53 " Tests for the ":sort" command.
12523
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
54 func Test_sort_cmd()
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
55 let tests = [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
56 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
57 \ 'name' : 'Alphabetical sort',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
58 \ 'cmd' : '%sort',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
59 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
60 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
61 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
62 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
63 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
64 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
65 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
66 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
67 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
68 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
69 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
70 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
71 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
72 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
73 \ 'b321b'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
74 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
75 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
76 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
77 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
78 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
79 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
80 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
81 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
82 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
83 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
84 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
85 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
86 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
87 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
88 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
89 \ 'c321d'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
90 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
91 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
92 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
93 \ 'name' : 'Numeric sort',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
94 \ 'cmd' : '%sort n',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
95 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
96 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
97 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
98 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
99 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
100 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
101 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
102 \ 'x-22',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
103 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
104 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
105 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
106 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
107 \ '-24',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
108 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
109 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
110 \ '0',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
111 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
112 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
113 \ 'b321b'
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 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
116 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
117 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
118 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
119 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
120 \ '-24',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
121 \ 'x-22',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
122 \ '0',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
123 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
124 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
125 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
126 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
127 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
128 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
129 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
130 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
131 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
132 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
133 \ 'b322b'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
134 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
135 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
136 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
137 \ 'name' : 'Hexadecimal sort',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
138 \ 'cmd' : '%sort x',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
139 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
140 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
141 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
142 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
143 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
144 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
145 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
146 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
147 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
148 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
149 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
150 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
151 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
152 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
153 \ 'b321b'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
154 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
155 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
156 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
157 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
158 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
159 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
160 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
161 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
162 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
163 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
164 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
165 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
166 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
167 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
168 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
169 \ 'c321d'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
170 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
171 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
172 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
173 \ 'name' : 'Alphabetical unique sort',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
174 \ 'cmd' : '%sort u',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
175 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
176 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
177 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
178 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
179 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
180 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
181 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
182 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
183 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
184 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
185 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
186 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
187 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
188 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
189 \ 'b321b'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
190 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
191 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
192 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
193 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
194 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
195 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
196 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
197 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
198 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
199 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
200 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
201 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
202 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
203 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
204 \ 'c321d'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
205 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
206 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
207 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
208 \ 'name' : 'Alphabetical reverse sort',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
209 \ 'cmd' : '%sort!',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
210 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
211 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
212 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
213 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
214 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
215 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
216 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
217 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
218 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
219 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
220 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
221 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
222 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
223 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
224 \ 'b321b'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
225 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
226 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
227 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
228 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
229 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
230 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
231 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
232 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
233 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
234 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
235 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
236 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
237 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
238 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
239 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
240 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
241 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
242 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
243 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
244 \ 'name' : 'Numeric reverse sort',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
245 \ 'cmd' : '%sort! n',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
246 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
247 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
248 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
249 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
250 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
251 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
252 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
253 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
254 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
255 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
256 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
257 \ 'c321d',
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 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
260 \ 'b321b'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
261 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
262 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
263 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
264 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
265 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
266 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
267 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
268 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
269 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
270 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
271 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
272 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
273 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
274 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
275 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
276 \ 'abc'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
277 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
278 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
279 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
280 \ 'name' : 'Unique reverse sort',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
281 \ 'cmd' : 'sort! u',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
282 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
283 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
284 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
285 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
286 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
287 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
288 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
289 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
290 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
291 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
292 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
293 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
294 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
295 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
296 \ 'b321b'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
297 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
298 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
299 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
300 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
301 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
302 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
303 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
304 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
305 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
306 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
307 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
308 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
309 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
310 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
311 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
312 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
313 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
314 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
315 \ 'name' : 'Octal sort',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
316 \ 'cmd' : 'sort o',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
317 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
318 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
319 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
320 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
321 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
322 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
323 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
324 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
325 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
326 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
327 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
328 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
329 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
330 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
331 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
332 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
333 \ ''
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 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
336 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
337 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
338 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
339 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
340 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
341 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
342 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
343 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
344 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
345 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
346 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
347 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
348 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
349 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
350 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
351 \ 'b322b'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
352 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
353 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
354 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
355 \ 'name' : 'Reverse hexadecimal sort',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
356 \ 'cmd' : 'sort! x',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
357 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
358 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
359 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
360 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
361 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
362 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
363 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
364 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
365 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
366 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
367 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
368 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
369 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
370 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
371 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
372 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
373 \ ''
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
374 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
375 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
376 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
377 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
378 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
379 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
380 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
381 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
382 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
383 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
384 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
385 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
386 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
387 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
388 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
389 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
390 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
391 \ ''
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
392 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
393 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
394 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
395 \ 'name' : 'Alpha (skip first character) sort',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
396 \ 'cmd' : 'sort/./',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
397 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
398 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
399 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
400 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
401 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
402 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
403 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
404 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
405 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
406 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
407 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
408 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
409 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
410 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
411 \ 'b321b',
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 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
415 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
416 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
417 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
418 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
419 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
420 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
421 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
422 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
423 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
424 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
425 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
426 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
427 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
428 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
429 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
430 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
431 \ 'abc'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
432 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
433 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
434 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
435 \ '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
436 \ 'cmd' : 'sort/../',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
437 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
438 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
439 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
440 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
441 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
442 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
443 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
444 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
445 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
446 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
447 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
448 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
449 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
450 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
451 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
452 \ '',
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 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
456 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
457 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
458 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
459 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
460 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
461 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
462 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
463 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
464 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
465 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
466 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
467 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
468 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
469 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
470 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
471 \ 'abc'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
472 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
473 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
474 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
475 \ '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
476 \ 'cmd' : 'sort/../u',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
477 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
478 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
479 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
480 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
481 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
482 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
483 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
484 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
485 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
486 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
487 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
488 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
489 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
490 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
491 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
492 \ '',
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 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
495 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
496 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
497 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
498 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
499 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
500 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
501 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
502 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
503 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
504 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
505 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
506 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
507 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
508 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
509 \ 'abc'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
510 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
511 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
512 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
513 \ 'name' : 'numeric, skip first character',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
514 \ 'cmd' : 'sort/./n',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
515 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
516 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
517 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
518 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
519 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
520 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
521 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
522 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
523 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
524 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
525 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
526 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
527 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
528 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
529 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
530 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
531 \ ''
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 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
534 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
535 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
536 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
537 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
538 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
539 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
540 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
541 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
542 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
543 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
544 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
545 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
546 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
547 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
548 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
549 \ 'b322b'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
550 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
551 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
552 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
553 \ 'name' : 'alpha, sort on first character',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
554 \ 'cmd' : 'sort/./r',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
555 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
556 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
557 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
558 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
559 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
560 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
561 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
562 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
563 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
564 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
565 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
566 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
567 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
568 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
569 \ 'b321b',
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 \ ''
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
572 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
573 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
574 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
575 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
576 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
577 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
578 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
579 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
580 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
581 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
582 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
583 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
584 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
585 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
586 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
587 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
588 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
589 \ 'c321d'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
590 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
591 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
592 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
593 \ '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
594 \ 'cmd' : 'sort/../r',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
595 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
596 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
597 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
598 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
599 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
600 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
601 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
602 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
603 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
604 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
605 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
606 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
607 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
608 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
609 \ 'b321b',
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 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
613 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
614 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
615 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
616 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
617 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
618 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
619 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
620 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
621 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
622 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
623 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
624 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
625 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
626 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
627 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
628 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
629 \ 'c321d'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
630 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
631 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
632 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
633 \ 'name' : 'numeric, sort on first character',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
634 \ 'cmd' : 'sort/./rn',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
635 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
636 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
637 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
638 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
639 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
640 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
641 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
642 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
643 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
644 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
645 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
646 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
647 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
648 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
649 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
650 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
651 \ ''
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
652 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
653 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
654 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
655 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
656 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
657 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
658 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
659 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
660 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
661 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
662 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
663 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
664 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
665 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
666 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
667 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
668 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
669 \ ''
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
670 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
671 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
672 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
673 \ 'name' : 'alpha, skip past first digit',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
674 \ 'cmd' : 'sort/\d/',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
675 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
676 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
677 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
678 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
679 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
680 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
681 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
682 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
683 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
684 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
685 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
686 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
687 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
688 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
689 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
690 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
691 \ ''
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 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
694 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
695 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
696 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
697 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
698 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
699 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
700 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
701 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
702 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
703 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
704 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
705 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
706 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
707 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
708 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
709 \ 'c123d'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
710 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
711 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
712 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
713 \ 'name' : 'alpha, sort on first digit',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
714 \ 'cmd' : 'sort/\d/r',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
715 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
716 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
717 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
718 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
719 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
720 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
721 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
722 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
723 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
724 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
725 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
726 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
727 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
728 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
729 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
730 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
731 \ ''
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 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
734 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
735 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
736 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
737 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
738 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
739 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
740 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
741 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
742 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
743 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
744 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
745 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
746 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
747 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
748 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
749 \ 'b321b'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
750 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
751 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
752 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
753 \ 'name' : 'numeric, skip past first digit',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
754 \ 'cmd' : 'sort/\d/n',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
755 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
756 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
757 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
758 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
759 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
760 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
761 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
762 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
763 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
764 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
765 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
766 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
767 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
768 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
769 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
770 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
771 \ ''
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 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
774 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
775 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
776 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
777 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
778 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
779 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
780 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
781 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
782 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
783 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
784 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
785 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
786 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
787 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
788 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
789 \ ' 123b'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
790 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
791 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
792 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
793 \ 'name' : 'numeric, sort on first digit',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
794 \ 'cmd' : 'sort/\d/rn',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
795 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
796 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
797 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
798 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
799 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
800 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
801 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
802 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
803 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
804 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
805 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
806 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
807 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
808 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
809 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
810 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
811 \ ''
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 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
814 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
815 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
816 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
817 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
818 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
819 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
820 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
821 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
822 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
823 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
824 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
825 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
826 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
827 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
828 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
829 \ 'b321b'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
830 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
831 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
832 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
833 \ '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
834 \ 'cmd' : 'sort/\d\d/',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
835 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
836 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
837 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
838 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
839 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
840 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
841 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
842 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
843 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
844 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
845 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
846 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
847 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
848 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
849 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
850 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
851 \ ''
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 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
854 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
855 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
856 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
857 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
858 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
859 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
860 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
861 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
862 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
863 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
864 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
865 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
866 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
867 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
868 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
869 \ 'c123d'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
870 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
871 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
872 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
873 \ '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
874 \ 'cmd' : 'sort/\d\d/n',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
875 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
876 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
877 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
878 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
879 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
880 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
881 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
882 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
883 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
884 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
885 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
886 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
887 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
888 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
889 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
890 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
891 \ ''
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 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
894 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
895 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
896 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
897 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
898 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
899 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
900 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
901 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
902 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
903 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
904 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
905 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
906 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
907 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
908 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
909 \ ' 123b'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
910 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
911 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
912 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
913 \ '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
914 \ 'cmd' : 'sort/\d\d/x',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
915 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
916 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
917 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
918 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
919 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
920 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
921 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
922 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
923 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
924 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
925 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
926 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
927 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
928 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
929 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
930 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
931 \ ''
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 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
934 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
935 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
936 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
937 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
938 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
939 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
940 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
941 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
942 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
943 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
944 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
945 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
946 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
947 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
948 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
949 \ 'c123d'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
950 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
951 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
952 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
953 \ '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
954 \ 'cmd' : 'sort/\d\d/r',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
955 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
956 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
957 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
958 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
959 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
960 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
961 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
962 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
963 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
964 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
965 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
966 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
967 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
968 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
969 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
970 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
971 \ ''
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 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
974 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
975 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
976 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
977 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
978 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
979 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
980 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
981 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
982 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
983 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
984 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
985 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
986 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
987 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
988 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
989 \ 'b321b'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
990 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
991 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
992 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
993 \ '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
994 \ 'cmd' : 'sort/\d\d/rn',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
995 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
996 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
997 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
998 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
999 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1000 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1001 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1002 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1003 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1004 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1005 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1006 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1007 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1008 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1009 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1010 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1011 \ ''
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 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1014 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1015 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1016 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1017 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1018 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1019 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1020 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1021 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1022 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1023 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1024 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1025 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1026 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1027 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1028 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1029 \ 'b321b'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1030 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1031 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1032 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1033 \ '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
1034 \ 'cmd' : 'sort/\d\d/rx',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1035 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1036 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1037 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1038 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1039 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1040 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1041 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1042 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1043 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1044 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1045 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1046 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1047 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1048 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1049 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1050 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1051 \ ''
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 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1054 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1055 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1056 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1057 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1058 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1059 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1060 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1061 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1062 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1063 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1064 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1065 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1066 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1067 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1068 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1069 \ 'b321b'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1070 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1071 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1072 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1073 \ 'name' : 'binary',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1074 \ 'cmd' : 'sort b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1075 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1076 \ '0b111000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1077 \ '0b101100',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1078 \ '0b101001',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1079 \ '0b101001',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1080 \ '0b101000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1081 \ '0b000000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1082 \ '0b001000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1083 \ '0b010000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1084 \ '0b101000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1085 \ '0b100000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1086 \ '0b101010',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1087 \ '0b100010',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1088 \ '0b100100',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1089 \ '0b100010',
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 \ ''
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1092 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1093 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1094 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1095 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1096 \ '0b000000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1097 \ '0b001000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1098 \ '0b010000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1099 \ '0b100000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1100 \ '0b100010',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1101 \ '0b100010',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1102 \ '0b100100',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1103 \ '0b101000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1104 \ '0b101000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1105 \ '0b101001',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1106 \ '0b101001',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1107 \ '0b101010',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1108 \ '0b101100',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1109 \ '0b111000'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1110 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1111 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1112 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1113 \ 'name' : 'binary with leading characters',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1114 \ 'cmd' : 'sort b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1115 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1116 \ '0b100010',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1117 \ '0b010000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1118 \ ' 0b101001',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1119 \ 'b0b101100',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1120 \ '0b100010',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1121 \ ' 0b100100',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1122 \ 'a0b001000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1123 \ '0b101000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1124 \ '0b101000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1125 \ 'a0b101001',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1126 \ 'ab0b100000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1127 \ '0b101010',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1128 \ '0b000000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1129 \ 'b0b111000',
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 \ ''
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1132 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1133 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1134 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1135 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1136 \ '0b000000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1137 \ 'a0b001000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1138 \ '0b010000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1139 \ 'ab0b100000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1140 \ '0b100010',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1141 \ '0b100010',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1142 \ ' 0b100100',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1143 \ '0b101000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1144 \ '0b101000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1145 \ ' 0b101001',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1146 \ 'a0b101001',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1147 \ '0b101010',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1148 \ 'b0b101100',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1149 \ 'b0b111000'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1150 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1151 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1152 \ {
14206
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1153 \ 'name' : 'alphabetical, sorted input',
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1154 \ 'cmd' : 'sort',
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1155 \ 'input' : [
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1156 \ 'a',
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1157 \ 'b',
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1158 \ 'c',
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1159 \ ],
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1160 \ 'expected' : [
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1161 \ 'a',
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1162 \ 'b',
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1163 \ 'c',
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1164 \ ]
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1165 \ },
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1166 \ {
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1167 \ 'name' : 'alphabetical, sorted input, unique at end',
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1168 \ 'cmd' : 'sort u',
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1169 \ 'input' : [
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1170 \ 'aa',
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1171 \ 'bb',
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1172 \ 'cc',
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1173 \ 'cc',
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1174 \ ],
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1175 \ 'expected' : [
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1176 \ 'aa',
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1177 \ 'bb',
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1178 \ 'cc',
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1179 \ ]
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1180 \ },
19231
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1181 \ {
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1182 \ 'name' : 'sort one line buffer',
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1183 \ 'cmd' : 'sort',
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1184 \ 'input' : [
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1185 \ 'single line'
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1186 \ ],
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1187 \ 'expected' : [
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1188 \ 'single line'
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1189 \ ]
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1190 \ },
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1191 \ {
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1192 \ 'name' : 'sort ignoring case',
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1193 \ 'cmd' : '%sort i',
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1194 \ 'input' : [
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1195 \ 'BB',
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1196 \ 'Cc',
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1197 \ 'aa'
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1198 \ ],
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1199 \ 'expected' : [
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1200 \ 'aa',
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1201 \ 'BB',
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1202 \ 'Cc'
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1203 \ ]
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1204 \ },
12523
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1205 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1206
19249
2a017e9dc6da patch 8.2.0183: tests fail when the float feature is disabled
Bram Moolenaar <Bram@vim.org>
parents: 19231
diff changeset
1207 if has('float')
2a017e9dc6da patch 8.2.0183: tests fail when the float feature is disabled
Bram Moolenaar <Bram@vim.org>
parents: 19231
diff changeset
1208 let tests += [
2a017e9dc6da patch 8.2.0183: tests fail when the float feature is disabled
Bram Moolenaar <Bram@vim.org>
parents: 19231
diff changeset
1209 \ {
2a017e9dc6da patch 8.2.0183: tests fail when the float feature is disabled
Bram Moolenaar <Bram@vim.org>
parents: 19231
diff changeset
1210 \ 'name' : 'float',
2a017e9dc6da patch 8.2.0183: tests fail when the float feature is disabled
Bram Moolenaar <Bram@vim.org>
parents: 19231
diff changeset
1211 \ 'cmd' : 'sort f',
2a017e9dc6da patch 8.2.0183: tests fail when the float feature is disabled
Bram Moolenaar <Bram@vim.org>
parents: 19231
diff changeset
1212 \ 'input' : [
2a017e9dc6da patch 8.2.0183: tests fail when the float feature is disabled
Bram Moolenaar <Bram@vim.org>
parents: 19231
diff changeset
1213 \ '1.234',
2a017e9dc6da patch 8.2.0183: tests fail when the float feature is disabled
Bram Moolenaar <Bram@vim.org>
parents: 19231
diff changeset
1214 \ '0.88',
2a017e9dc6da patch 8.2.0183: tests fail when the float feature is disabled
Bram Moolenaar <Bram@vim.org>
parents: 19231
diff changeset
1215 \ ' + 123.456',
2a017e9dc6da patch 8.2.0183: tests fail when the float feature is disabled
Bram Moolenaar <Bram@vim.org>
parents: 19231
diff changeset
1216 \ '1.15e-6',
2a017e9dc6da patch 8.2.0183: tests fail when the float feature is disabled
Bram Moolenaar <Bram@vim.org>
parents: 19231
diff changeset
1217 \ '-1.1e3',
2a017e9dc6da patch 8.2.0183: tests fail when the float feature is disabled
Bram Moolenaar <Bram@vim.org>
parents: 19231
diff changeset
1218 \ '-1.01e3',
2a017e9dc6da patch 8.2.0183: tests fail when the float feature is disabled
Bram Moolenaar <Bram@vim.org>
parents: 19231
diff changeset
1219 \ '',
2a017e9dc6da patch 8.2.0183: tests fail when the float feature is disabled
Bram Moolenaar <Bram@vim.org>
parents: 19231
diff changeset
1220 \ ''
2a017e9dc6da patch 8.2.0183: tests fail when the float feature is disabled
Bram Moolenaar <Bram@vim.org>
parents: 19231
diff changeset
1221 \ ],
2a017e9dc6da patch 8.2.0183: tests fail when the float feature is disabled
Bram Moolenaar <Bram@vim.org>
parents: 19231
diff changeset
1222 \ 'expected' : [
2a017e9dc6da patch 8.2.0183: tests fail when the float feature is disabled
Bram Moolenaar <Bram@vim.org>
parents: 19231
diff changeset
1223 \ '',
2a017e9dc6da patch 8.2.0183: tests fail when the float feature is disabled
Bram Moolenaar <Bram@vim.org>
parents: 19231
diff changeset
1224 \ '',
2a017e9dc6da patch 8.2.0183: tests fail when the float feature is disabled
Bram Moolenaar <Bram@vim.org>
parents: 19231
diff changeset
1225 \ '-1.1e3',
2a017e9dc6da patch 8.2.0183: tests fail when the float feature is disabled
Bram Moolenaar <Bram@vim.org>
parents: 19231
diff changeset
1226 \ '-1.01e3',
2a017e9dc6da patch 8.2.0183: tests fail when the float feature is disabled
Bram Moolenaar <Bram@vim.org>
parents: 19231
diff changeset
1227 \ '1.15e-6',
2a017e9dc6da patch 8.2.0183: tests fail when the float feature is disabled
Bram Moolenaar <Bram@vim.org>
parents: 19231
diff changeset
1228 \ '0.88',
2a017e9dc6da patch 8.2.0183: tests fail when the float feature is disabled
Bram Moolenaar <Bram@vim.org>
parents: 19231
diff changeset
1229 \ '1.234',
2a017e9dc6da patch 8.2.0183: tests fail when the float feature is disabled
Bram Moolenaar <Bram@vim.org>
parents: 19231
diff changeset
1230 \ ' + 123.456'
2a017e9dc6da patch 8.2.0183: tests fail when the float feature is disabled
Bram Moolenaar <Bram@vim.org>
parents: 19231
diff changeset
1231 \ ]
2a017e9dc6da patch 8.2.0183: tests fail when the float feature is disabled
Bram Moolenaar <Bram@vim.org>
parents: 19231
diff changeset
1232 \ },
2a017e9dc6da patch 8.2.0183: tests fail when the float feature is disabled
Bram Moolenaar <Bram@vim.org>
parents: 19231
diff changeset
1233 \ ]
2a017e9dc6da patch 8.2.0183: tests fail when the float feature is disabled
Bram Moolenaar <Bram@vim.org>
parents: 19231
diff changeset
1234 endif
2a017e9dc6da patch 8.2.0183: tests fail when the float feature is disabled
Bram Moolenaar <Bram@vim.org>
parents: 19231
diff changeset
1235
12523
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1236 for t in tests
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1237 enew!
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1238 call append(0, t.input)
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1239 $delete _
14206
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1240 setlocal nomodified
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1241 execute t.cmd
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1242
12523
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1243 call assert_equal(t.expected, getline(1, '$'), t.name)
14206
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1244
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1245 " Previously, the ":sort" command would set 'modified' even if the buffer
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1246 " contents did not change. Here, we check that this problem is fixed.
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1247 if t.input == t.expected
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1248 call assert_false(&modified, t.name . ': &mod is not correct')
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1249 else
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1250 call assert_true(&modified, t.name . ': &mod is not correct')
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1251 endif
12523
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1252 endfor
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1253
19231
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1254 " Needs atleast two lines for this test
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1255 call setline(1, ['line1', 'line2'])
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1256 call assert_fails('sort no', 'E474:')
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1257 call assert_fails('sort c', 'E475:')
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1258 call assert_fails('sort #pat%', 'E682:')
12523
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1259
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1260 enew!
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1261 endfunc
14808
3d0b6e2a3a01 patch 8.1.0416: sort doesn't report deleted lines
Christian Brabandt <cb@256bit.org>
parents: 14206
diff changeset
1262
15906
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1263 func Test_sort_large_num()
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1264 new
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1265 a
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1266 -2147483648
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1267 -2147483647
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1268
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1269 -1
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1270 0
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1271 1
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1272 -2147483646
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1273 2147483646
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1274 2147483647
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1275 2147483647
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1276 -2147483648
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1277 abc
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1278
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1279 .
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1280 " Numerical sort. Non-numeric lines are ordered before numerical lines.
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1281 " Ordering of non-numerical is stable.
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1282 sort n
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1283 call assert_equal(['',
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1284 \ 'abc',
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1285 \ '',
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1286 \ '-2147483648',
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1287 \ '-2147483648',
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1288 \ '-2147483647',
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1289 \ '-2147483646',
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1290 \ '-1',
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1291 \ '0',
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1292 \ '1',
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1293 \ '2147483646',
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1294 \ '2147483647',
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1295 \ '2147483647'], getline(1, '$'))
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1296 bwipe!
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1297
19427
fdfe44ac6a1a patch 8.2.0271: the "num64" feature is available everywhere
Bram Moolenaar <Bram@vim.org>
parents: 19370
diff changeset
1298 new
fdfe44ac6a1a patch 8.2.0271: the "num64" feature is available everywhere
Bram Moolenaar <Bram@vim.org>
parents: 19370
diff changeset
1299 a
15906
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1300 -9223372036854775808
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1301 -9223372036854775807
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1302
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1303 -1
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1304 0
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1305 1
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1306 -9223372036854775806
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1307 9223372036854775806
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1308 9223372036854775807
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1309 9223372036854775807
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1310 -9223372036854775808
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1311 abc
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1312
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1313 .
19427
fdfe44ac6a1a patch 8.2.0271: the "num64" feature is available everywhere
Bram Moolenaar <Bram@vim.org>
parents: 19370
diff changeset
1314 sort n
fdfe44ac6a1a patch 8.2.0271: the "num64" feature is available everywhere
Bram Moolenaar <Bram@vim.org>
parents: 19370
diff changeset
1315 call assert_equal(['',
fdfe44ac6a1a patch 8.2.0271: the "num64" feature is available everywhere
Bram Moolenaar <Bram@vim.org>
parents: 19370
diff changeset
1316 \ 'abc',
fdfe44ac6a1a patch 8.2.0271: the "num64" feature is available everywhere
Bram Moolenaar <Bram@vim.org>
parents: 19370
diff changeset
1317 \ '',
fdfe44ac6a1a patch 8.2.0271: the "num64" feature is available everywhere
Bram Moolenaar <Bram@vim.org>
parents: 19370
diff changeset
1318 \ '-9223372036854775808',
fdfe44ac6a1a patch 8.2.0271: the "num64" feature is available everywhere
Bram Moolenaar <Bram@vim.org>
parents: 19370
diff changeset
1319 \ '-9223372036854775808',
fdfe44ac6a1a patch 8.2.0271: the "num64" feature is available everywhere
Bram Moolenaar <Bram@vim.org>
parents: 19370
diff changeset
1320 \ '-9223372036854775807',
fdfe44ac6a1a patch 8.2.0271: the "num64" feature is available everywhere
Bram Moolenaar <Bram@vim.org>
parents: 19370
diff changeset
1321 \ '-9223372036854775806',
fdfe44ac6a1a patch 8.2.0271: the "num64" feature is available everywhere
Bram Moolenaar <Bram@vim.org>
parents: 19370
diff changeset
1322 \ '-1',
fdfe44ac6a1a patch 8.2.0271: the "num64" feature is available everywhere
Bram Moolenaar <Bram@vim.org>
parents: 19370
diff changeset
1323 \ '0',
fdfe44ac6a1a patch 8.2.0271: the "num64" feature is available everywhere
Bram Moolenaar <Bram@vim.org>
parents: 19370
diff changeset
1324 \ '1',
fdfe44ac6a1a patch 8.2.0271: the "num64" feature is available everywhere
Bram Moolenaar <Bram@vim.org>
parents: 19370
diff changeset
1325 \ '9223372036854775806',
fdfe44ac6a1a patch 8.2.0271: the "num64" feature is available everywhere
Bram Moolenaar <Bram@vim.org>
parents: 19370
diff changeset
1326 \ '9223372036854775807',
fdfe44ac6a1a patch 8.2.0271: the "num64" feature is available everywhere
Bram Moolenaar <Bram@vim.org>
parents: 19370
diff changeset
1327 \ '9223372036854775807'], getline(1, '$'))
fdfe44ac6a1a patch 8.2.0271: the "num64" feature is available everywhere
Bram Moolenaar <Bram@vim.org>
parents: 19370
diff changeset
1328 bwipe!
15906
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1329 endfunc
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1330
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1331
14808
3d0b6e2a3a01 patch 8.1.0416: sort doesn't report deleted lines
Christian Brabandt <cb@256bit.org>
parents: 14206
diff changeset
1332 func Test_sort_cmd_report()
3d0b6e2a3a01 patch 8.1.0416: sort doesn't report deleted lines
Christian Brabandt <cb@256bit.org>
parents: 14206
diff changeset
1333 enew!
3d0b6e2a3a01 patch 8.1.0416: sort doesn't report deleted lines
Christian Brabandt <cb@256bit.org>
parents: 14206
diff changeset
1334 call append(0, repeat([1], 3) + repeat([2], 3) + repeat([3], 3))
3d0b6e2a3a01 patch 8.1.0416: sort doesn't report deleted lines
Christian Brabandt <cb@256bit.org>
parents: 14206
diff changeset
1335 $delete _
3d0b6e2a3a01 patch 8.1.0416: sort doesn't report deleted lines
Christian Brabandt <cb@256bit.org>
parents: 14206
diff changeset
1336 setlocal nomodified
3d0b6e2a3a01 patch 8.1.0416: sort doesn't report deleted lines
Christian Brabandt <cb@256bit.org>
parents: 14206
diff changeset
1337 let res = execute('%sort u')
3d0b6e2a3a01 patch 8.1.0416: sort doesn't report deleted lines
Christian Brabandt <cb@256bit.org>
parents: 14206
diff changeset
1338
3d0b6e2a3a01 patch 8.1.0416: sort doesn't report deleted lines
Christian Brabandt <cb@256bit.org>
parents: 14206
diff changeset
1339 call assert_equal([1,2,3], map(getline(1, '$'), 'v:val+0'))
3d0b6e2a3a01 patch 8.1.0416: sort doesn't report deleted lines
Christian Brabandt <cb@256bit.org>
parents: 14206
diff changeset
1340 call assert_match("6 fewer lines", res)
3d0b6e2a3a01 patch 8.1.0416: sort doesn't report deleted lines
Christian Brabandt <cb@256bit.org>
parents: 14206
diff changeset
1341 enew!
3d0b6e2a3a01 patch 8.1.0416: sort doesn't report deleted lines
Christian Brabandt <cb@256bit.org>
parents: 14206
diff changeset
1342 call append(0, repeat([1], 3) + repeat([2], 3) + repeat([3], 3))
3d0b6e2a3a01 patch 8.1.0416: sort doesn't report deleted lines
Christian Brabandt <cb@256bit.org>
parents: 14206
diff changeset
1343 $delete _
3d0b6e2a3a01 patch 8.1.0416: sort doesn't report deleted lines
Christian Brabandt <cb@256bit.org>
parents: 14206
diff changeset
1344 setlocal nomodified report=10
3d0b6e2a3a01 patch 8.1.0416: sort doesn't report deleted lines
Christian Brabandt <cb@256bit.org>
parents: 14206
diff changeset
1345 let res = execute('%sort u')
3d0b6e2a3a01 patch 8.1.0416: sort doesn't report deleted lines
Christian Brabandt <cb@256bit.org>
parents: 14206
diff changeset
1346
3d0b6e2a3a01 patch 8.1.0416: sort doesn't report deleted lines
Christian Brabandt <cb@256bit.org>
parents: 14206
diff changeset
1347 call assert_equal([1,2,3], map(getline(1, '$'), 'v:val+0'))
3d0b6e2a3a01 patch 8.1.0416: sort doesn't report deleted lines
Christian Brabandt <cb@256bit.org>
parents: 14206
diff changeset
1348 call assert_equal("", res)
3d0b6e2a3a01 patch 8.1.0416: sort doesn't report deleted lines
Christian Brabandt <cb@256bit.org>
parents: 14206
diff changeset
1349 enew!
3d0b6e2a3a01 patch 8.1.0416: sort doesn't report deleted lines
Christian Brabandt <cb@256bit.org>
parents: 14206
diff changeset
1350 call append(0, repeat([1], 3) + repeat([2], 3) + repeat([3], 3))
3d0b6e2a3a01 patch 8.1.0416: sort doesn't report deleted lines
Christian Brabandt <cb@256bit.org>
parents: 14206
diff changeset
1351 $delete _
3d0b6e2a3a01 patch 8.1.0416: sort doesn't report deleted lines
Christian Brabandt <cb@256bit.org>
parents: 14206
diff changeset
1352 setl report&vim
3d0b6e2a3a01 patch 8.1.0416: sort doesn't report deleted lines
Christian Brabandt <cb@256bit.org>
parents: 14206
diff changeset
1353 setlocal nomodified
3d0b6e2a3a01 patch 8.1.0416: sort doesn't report deleted lines
Christian Brabandt <cb@256bit.org>
parents: 14206
diff changeset
1354 let res = execute('1g/^/%sort u')
3d0b6e2a3a01 patch 8.1.0416: sort doesn't report deleted lines
Christian Brabandt <cb@256bit.org>
parents: 14206
diff changeset
1355
3d0b6e2a3a01 patch 8.1.0416: sort doesn't report deleted lines
Christian Brabandt <cb@256bit.org>
parents: 14206
diff changeset
1356 call assert_equal([1,2,3], map(getline(1, '$'), 'v:val+0'))
3d0b6e2a3a01 patch 8.1.0416: sort doesn't report deleted lines
Christian Brabandt <cb@256bit.org>
parents: 14206
diff changeset
1357 " the output comes from the :g command, not from the :sort
3d0b6e2a3a01 patch 8.1.0416: sort doesn't report deleted lines
Christian Brabandt <cb@256bit.org>
parents: 14206
diff changeset
1358 call assert_match("6 fewer lines", res)
3d0b6e2a3a01 patch 8.1.0416: sort doesn't report deleted lines
Christian Brabandt <cb@256bit.org>
parents: 14206
diff changeset
1359 enew!
19231
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1360 endfunc
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1361
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1362 " Test for a :sort command followed by another command
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1363 func Test_sort_followed_by_cmd()
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1364 new
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1365 let var = ''
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1366 call setline(1, ['cc', 'aa', 'bb'])
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1367 %sort | let var = "sortcmdtest"
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1368 call assert_equal(var, "sortcmdtest")
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1369 call assert_equal(['aa', 'bb', 'cc'], getline(1, '$'))
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1370 " Test for :sort followed by a comment
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1371 call setline(1, ['3b', '1c', '2a'])
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1372 %sort /\d\+/ " sort alphabetically
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1373 call assert_equal(['2a', '3b', '1c'], getline(1, '$'))
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1374 close!
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1375 endfunc
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1376
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1377 " Test for :sort using last search pattern
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1378 func Test_sort_last_search_pat()
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1379 new
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1380 let @/ = '\d\+'
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1381 call setline(1, ['3b', '1c', '2a'])
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1382 sort //
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1383 call assert_equal(['2a', '3b', '1c'], getline(1, '$'))
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1384 close!
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1385 endfunc
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1386
19370
02111977dd05 patch 8.2.0243: insufficient code coverage for ex_docmd.c functions
Bram Moolenaar <Bram@vim.org>
parents: 19308
diff changeset
1387 " Test for :sort with no last search pattern
02111977dd05 patch 8.2.0243: insufficient code coverage for ex_docmd.c functions
Bram Moolenaar <Bram@vim.org>
parents: 19308
diff changeset
1388 func Test_sort_with_no_last_search_pat()
02111977dd05 patch 8.2.0243: insufficient code coverage for ex_docmd.c functions
Bram Moolenaar <Bram@vim.org>
parents: 19308
diff changeset
1389 let lines =<< trim [SCRIPT]
02111977dd05 patch 8.2.0243: insufficient code coverage for ex_docmd.c functions
Bram Moolenaar <Bram@vim.org>
parents: 19308
diff changeset
1390 call setline(1, ['3b', '1c', '2a'])
02111977dd05 patch 8.2.0243: insufficient code coverage for ex_docmd.c functions
Bram Moolenaar <Bram@vim.org>
parents: 19308
diff changeset
1391 call assert_fails('sort //', 'E35:')
02111977dd05 patch 8.2.0243: insufficient code coverage for ex_docmd.c functions
Bram Moolenaar <Bram@vim.org>
parents: 19308
diff changeset
1392 call writefile(v:errors, 'Xresult')
02111977dd05 patch 8.2.0243: insufficient code coverage for ex_docmd.c functions
Bram Moolenaar <Bram@vim.org>
parents: 19308
diff changeset
1393 qall!
02111977dd05 patch 8.2.0243: insufficient code coverage for ex_docmd.c functions
Bram Moolenaar <Bram@vim.org>
parents: 19308
diff changeset
1394 [SCRIPT]
02111977dd05 patch 8.2.0243: insufficient code coverage for ex_docmd.c functions
Bram Moolenaar <Bram@vim.org>
parents: 19308
diff changeset
1395 call writefile(lines, 'Xscript')
02111977dd05 patch 8.2.0243: insufficient code coverage for ex_docmd.c functions
Bram Moolenaar <Bram@vim.org>
parents: 19308
diff changeset
1396 if RunVim([], [], '--clean -S Xscript')
02111977dd05 patch 8.2.0243: insufficient code coverage for ex_docmd.c functions
Bram Moolenaar <Bram@vim.org>
parents: 19308
diff changeset
1397 call assert_equal([], readfile('Xresult'))
02111977dd05 patch 8.2.0243: insufficient code coverage for ex_docmd.c functions
Bram Moolenaar <Bram@vim.org>
parents: 19308
diff changeset
1398 endif
02111977dd05 patch 8.2.0243: insufficient code coverage for ex_docmd.c functions
Bram Moolenaar <Bram@vim.org>
parents: 19308
diff changeset
1399 call delete('Xscript')
02111977dd05 patch 8.2.0243: insufficient code coverage for ex_docmd.c functions
Bram Moolenaar <Bram@vim.org>
parents: 19308
diff changeset
1400 call delete('Xresult')
02111977dd05 patch 8.2.0243: insufficient code coverage for ex_docmd.c functions
Bram Moolenaar <Bram@vim.org>
parents: 19308
diff changeset
1401 endfunc
02111977dd05 patch 8.2.0243: insufficient code coverage for ex_docmd.c functions
Bram Moolenaar <Bram@vim.org>
parents: 19308
diff changeset
1402
19231
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1403 " Test for retaining marks across a :sort
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1404 func Test_sort_with_marks()
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1405 new
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1406 call setline(1, ['cc', 'aa', 'bb'])
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1407 call setpos("'c", [0, 1, 0, 0])
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1408 call setpos("'a", [0, 2, 0, 0])
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1409 call setpos("'b", [0, 3, 0, 0])
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1410 %sort
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1411 call assert_equal(['aa', 'bb', 'cc'], getline(1, '$'))
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1412 call assert_equal(2, line("'a"))
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1413 call assert_equal(3, line("'b"))
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1414 call assert_equal(1, line("'c"))
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1415 close!
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1416 endfunc
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1417
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1418 " vim: shiftwidth=2 sts=2 expandtab