annotate src/testdir/test_sort.vim @ 23057:35ba3a465deb

Added tag v8.2.2074 for changeset 57b6427c18e4d7e4c713c84528a6ee189c7b9ab0
author Bram Moolenaar <Bram@vim.org>
date Tue, 01 Dec 2020 20:15:04 +0100
parents d3694e3685d3
children b545334ae654
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
21765
08940efa6b4e patch 8.2.1432: various inconsistencies in test files
Bram Moolenaar <Bram@vim.org>
parents: 20113
diff changeset
6 call sort(range(3), 'Compare2')
08940efa6b4e patch 8.2.1432: various inconsistencies in test files
Bram Moolenaar <Bram@vim.org>
parents: 20113
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
21765
08940efa6b4e patch 8.2.1432: various inconsistencies in test files
Bram Moolenaar <Bram@vim.org>
parents: 20113
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]))
22770
3e4981de5636 patch 8.2.1933: cannot sort using locale ordering
Bram Moolenaar <Bram@vim.org>
parents: 22375
diff changeset
18
3e4981de5636 patch 8.2.1933: cannot sort using locale ordering
Bram Moolenaar <Bram@vim.org>
parents: 22375
diff changeset
19 call assert_equal(['A', 'O', 'P', 'a', 'o', 'p', 'Ä', 'Ô', 'ä', 'ô', 'œ', 'œ'],
3e4981de5636 patch 8.2.1933: cannot sort using locale ordering
Bram Moolenaar <Bram@vim.org>
parents: 22375
diff changeset
20 \ sort(['A', 'O', 'P', 'a', 'o', 'p', 'Ä', 'Ô', 'ä', 'ô', 'œ', 'œ']))
3e4981de5636 patch 8.2.1933: cannot sort using locale ordering
Bram Moolenaar <Bram@vim.org>
parents: 22375
diff changeset
21
3e4981de5636 patch 8.2.1933: cannot sort using locale ordering
Bram Moolenaar <Bram@vim.org>
parents: 22375
diff changeset
22 call assert_equal(['A', 'a', 'o', 'O', 'p', 'P', 'Ä', 'Ô', 'ä', 'ô', 'œ', 'œ'],
3e4981de5636 patch 8.2.1933: cannot sort using locale ordering
Bram Moolenaar <Bram@vim.org>
parents: 22375
diff changeset
23 \ sort(['A', 'a', 'o', 'O', 'œ', 'œ', 'p', 'P', 'Ä', 'ä', 'ô', 'Ô'], 'i'))
3e4981de5636 patch 8.2.1933: cannot sort using locale ordering
Bram Moolenaar <Bram@vim.org>
parents: 22375
diff changeset
24
22774
8561ae67f85d patch 8.2.1935: sort test fails on Mac
Bram Moolenaar <Bram@vim.org>
parents: 22770
diff changeset
25 " This does not appear to work correctly on Mac.
8561ae67f85d patch 8.2.1935: sort test fails on Mac
Bram Moolenaar <Bram@vim.org>
parents: 22770
diff changeset
26 if !has('mac')
8561ae67f85d patch 8.2.1935: sort test fails on Mac
Bram Moolenaar <Bram@vim.org>
parents: 22770
diff changeset
27 " With the following locales, the accentuated letters are ordered
8561ae67f85d patch 8.2.1935: sort test fails on Mac
Bram Moolenaar <Bram@vim.org>
parents: 22770
diff changeset
28 " similarly to the non-accentuated letters...
22796
d3694e3685d3 patch 8.2.1946: sort() with NULL string not tested
Bram Moolenaar <Bram@vim.org>
parents: 22774
diff changeset
29 if v:collate =~? '^\(en\|es\|de\|fr\|it\|nl\).*\.utf-\?8$'
22774
8561ae67f85d patch 8.2.1935: sort test fails on Mac
Bram Moolenaar <Bram@vim.org>
parents: 22770
diff changeset
30 call assert_equal(['a', 'A', 'ä', 'Ä', 'o', 'O', 'ô', 'Ô', 'œ', 'œ', 'p', 'P'],
8561ae67f85d patch 8.2.1935: sort test fails on Mac
Bram Moolenaar <Bram@vim.org>
parents: 22770
diff changeset
31 \ sort(['A', 'a', 'o', 'O', 'œ', 'œ', 'p', 'P', 'Ä', 'ä', 'ô', 'Ô'], 'l'))
8561ae67f85d patch 8.2.1935: sort test fails on Mac
Bram Moolenaar <Bram@vim.org>
parents: 22770
diff changeset
32 " ... whereas with a Swedish locale, the accentuated letters are ordered
8561ae67f85d patch 8.2.1935: sort test fails on Mac
Bram Moolenaar <Bram@vim.org>
parents: 22770
diff changeset
33 " after Z.
22796
d3694e3685d3 patch 8.2.1946: sort() with NULL string not tested
Bram Moolenaar <Bram@vim.org>
parents: 22774
diff changeset
34 elseif v:collate =~? '^sv.*utf-\?8$'
22774
8561ae67f85d patch 8.2.1935: sort test fails on Mac
Bram Moolenaar <Bram@vim.org>
parents: 22770
diff changeset
35 call assert_equal(['a', 'A', 'o', 'O', 'p', 'P', 'ä', 'Ä', 'œ', 'œ', 'ô', 'Ô'],
8561ae67f85d patch 8.2.1935: sort test fails on Mac
Bram Moolenaar <Bram@vim.org>
parents: 22770
diff changeset
36 \ sort(['A', 'a', 'o', 'O', 'œ', 'œ', 'p', 'P', 'Ä', 'ä', 'ô', 'Ô'], 'l'))
8561ae67f85d patch 8.2.1935: sort test fails on Mac
Bram Moolenaar <Bram@vim.org>
parents: 22770
diff changeset
37 endif
22770
3e4981de5636 patch 8.2.1933: cannot sort using locale ordering
Bram Moolenaar <Bram@vim.org>
parents: 22375
diff changeset
38 endif
7291
6ffc75d807bd commit https://github.com/vim/vim/commit/b00da1d6d1655cb6e415f84ecc3be5ff3b790811
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
39 endfunc
6ffc75d807bd commit https://github.com/vim/vim/commit/b00da1d6d1655cb6e415f84ecc3be5ff3b790811
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
40
22796
d3694e3685d3 patch 8.2.1946: sort() with NULL string not tested
Bram Moolenaar <Bram@vim.org>
parents: 22774
diff changeset
41 func Test_sort_null_string()
d3694e3685d3 patch 8.2.1946: sort() with NULL string not tested
Bram Moolenaar <Bram@vim.org>
parents: 22774
diff changeset
42 " null strings are sorted as empty strings.
d3694e3685d3 patch 8.2.1946: sort() with NULL string not tested
Bram Moolenaar <Bram@vim.org>
parents: 22774
diff changeset
43 call assert_equal(['', 'a', 'b'], sort(['b', test_null_string(), 'a']))
d3694e3685d3 patch 8.2.1946: sort() with NULL string not tested
Bram Moolenaar <Bram@vim.org>
parents: 22774
diff changeset
44 endfunc
d3694e3685d3 patch 8.2.1946: sort() with NULL string not tested
Bram Moolenaar <Bram@vim.org>
parents: 22774
diff changeset
45
7291
6ffc75d807bd commit https://github.com/vim/vim/commit/b00da1d6d1655cb6e415f84ecc3be5ff3b790811
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
46 func Test_sort_numeric()
6ffc75d807bd commit https://github.com/vim/vim/commit/b00da1d6d1655cb6e415f84ecc3be5ff3b790811
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
47 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
48 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
49 " strings are not sorted
6ffc75d807bd commit https://github.com/vim/vim/commit/b00da1d6d1655cb6e415f84ecc3be5ff3b790811
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
50 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
51 endfunc
6ffc75d807bd commit https://github.com/vim/vim/commit/b00da1d6d1655cb6e415f84ecc3be5ff3b790811
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
52
6ffc75d807bd commit https://github.com/vim/vim/commit/b00da1d6d1655cb6e415f84ecc3be5ff3b790811
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
53 func Test_sort_numbers()
6ffc75d807bd commit https://github.com/vim/vim/commit/b00da1d6d1655cb6e415f84ecc3be5ff3b790811
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
54 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
55 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
56 endfunc
7689
20dc2763a3b9 commit https://github.com/vim/vim/commit/f7edf40448a09e04eec3bd05e043f7fea93b07c9
Christian Brabandt <cb@256bit.org>
parents: 7291
diff changeset
57
20dc2763a3b9 commit https://github.com/vim/vim/commit/f7edf40448a09e04eec3bd05e043f7fea93b07c9
Christian Brabandt <cb@256bit.org>
parents: 7291
diff changeset
58 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
59 CheckFeature float
7689
20dc2763a3b9 commit https://github.com/vim/vim/commit/f7edf40448a09e04eec3bd05e043f7fea93b07c9
Christian Brabandt <cb@256bit.org>
parents: 7291
diff changeset
60 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
61 endfunc
8202
c16aa03d8db5 commit https://github.com/vim/vim/commit/0b962473ddc7cee3cb45253dea273573bcca9bf9
Christian Brabandt <cb@256bit.org>
parents: 7689
diff changeset
62
c16aa03d8db5 commit https://github.com/vim/vim/commit/0b962473ddc7cee3cb45253dea273573bcca9bf9
Christian Brabandt <cb@256bit.org>
parents: 7689
diff changeset
63 func Test_sort_nested()
c16aa03d8db5 commit https://github.com/vim/vim/commit/0b962473ddc7cee3cb45253dea273573bcca9bf9
Christian Brabandt <cb@256bit.org>
parents: 7689
diff changeset
64 " 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
65 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
66 endfunc
8344
2aa24f702b8d commit https://github.com/vim/vim/commit/5131c144feb046c5e2b72e6c172159d80ce06b3c
Christian Brabandt <cb@256bit.org>
parents: 8208
diff changeset
67
2aa24f702b8d commit https://github.com/vim/vim/commit/5131c144feb046c5e2b72e6c172159d80ce06b3c
Christian Brabandt <cb@256bit.org>
parents: 8208
diff changeset
68 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
69 CheckFeature float
2a017e9dc6da patch 8.2.0183: tests fail when the float feature is disabled
Bram Moolenaar <Bram@vim.org>
parents: 19231
diff changeset
70
8344
2aa24f702b8d commit https://github.com/vim/vim/commit/5131c144feb046c5e2b72e6c172159d80ce06b3c
Christian Brabandt <cb@256bit.org>
parents: 8208
diff changeset
71 " 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
72 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
73 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
74 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
75 call assert_equal(['2', 'A', 'a', 'AA', 1, 3.3], sort([3.3, 1, "2", "A", "a", "AA"], 1))
20109
e82996ad131f patch 8.2.0610: some tests are still old style
Bram Moolenaar <Bram@vim.org>
parents: 19427
diff changeset
76 call assert_fails('call sort([3.3, 1, "2"], 3)', "E474:")
8344
2aa24f702b8d commit https://github.com/vim/vim/commit/5131c144feb046c5e2b72e6c172159d80ce06b3c
Christian Brabandt <cb@256bit.org>
parents: 8208
diff changeset
77 endfunc
12523
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
78
14206
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
79 " Tests for the ":sort" command.
12523
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
80 func Test_sort_cmd()
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
81 let tests = [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
82 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
83 \ 'name' : 'Alphabetical sort',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
84 \ 'cmd' : '%sort',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
85 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
86 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
87 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
88 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
89 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
90 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
91 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
92 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
93 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
94 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
95 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
96 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
97 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
98 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
99 \ 'b321b'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
100 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
101 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
102 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
103 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
104 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
105 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
106 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
107 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
108 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
109 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
110 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
111 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
112 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
113 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
114 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
115 \ 'c321d'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
116 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
117 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
118 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
119 \ 'name' : 'Numeric sort',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
120 \ 'cmd' : '%sort n',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
121 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
122 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
123 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
124 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
125 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
126 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
127 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
128 \ 'x-22',
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 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
131 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
132 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
133 \ '-24',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
134 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
135 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
136 \ '0',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
137 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
138 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
139 \ 'b321b'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
140 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
141 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
142 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
143 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
144 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
145 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
146 \ '-24',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
147 \ 'x-22',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
148 \ '0',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
149 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
150 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
151 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
152 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
153 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
154 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
155 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
156 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
157 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
158 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
159 \ 'b322b'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
160 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
161 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
162 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
163 \ 'name' : 'Hexadecimal sort',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
164 \ 'cmd' : '%sort x',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
165 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
166 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
167 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
168 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
169 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
170 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
171 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
172 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
173 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
174 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
175 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
176 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
177 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
178 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
179 \ 'b321b'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
180 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
181 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
182 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
183 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
184 \ 'abc',
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 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
187 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
188 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
189 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
190 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
191 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
192 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
193 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
194 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
195 \ 'c321d'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
196 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
197 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
198 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
199 \ 'name' : 'Alphabetical unique sort',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
200 \ 'cmd' : '%sort u',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
201 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
202 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
203 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
204 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
205 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
206 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
207 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
208 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
209 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
210 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
211 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
212 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
213 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
214 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
215 \ 'b321b'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
216 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
217 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
218 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
219 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
220 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
221 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
222 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
223 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
224 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
225 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
226 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
227 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
228 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
229 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
230 \ 'c321d'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
231 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
232 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
233 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
234 \ 'name' : 'Alphabetical reverse sort',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
235 \ 'cmd' : '%sort!',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
236 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
237 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
238 \ 'ab',
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 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
241 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
242 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
243 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
244 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
245 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
246 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
247 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
248 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
249 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
250 \ 'b321b'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
251 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
252 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
253 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
254 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
255 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
256 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
257 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
258 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
259 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
260 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
261 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
262 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
263 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
264 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
265 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
266 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
267 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
268 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
269 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
270 \ 'name' : 'Numeric reverse sort',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
271 \ 'cmd' : '%sort! n',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
272 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
273 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
274 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
275 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
276 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
277 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
278 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
279 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
280 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
281 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
282 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
283 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
284 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
285 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
286 \ 'b321b'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
287 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
288 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
289 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
290 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
291 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
292 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
293 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
294 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
295 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
296 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
297 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
298 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
299 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
300 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
301 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
302 \ 'abc'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
303 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
304 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
305 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
306 \ 'name' : 'Unique reverse sort',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
307 \ 'cmd' : 'sort! u',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
308 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
309 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
310 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
311 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
312 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
313 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
314 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
315 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
316 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
317 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
318 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
319 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
320 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
321 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
322 \ 'b321b'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
323 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
324 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
325 \ 'c321d',
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 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
328 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
329 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
330 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
331 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
332 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
333 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
334 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
335 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
336 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
337 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
338 \ ]
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 \ 'name' : 'Octal sort',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
342 \ 'cmd' : 'sort o',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
343 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
344 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
345 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
346 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
347 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
348 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
349 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
350 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
351 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
352 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
353 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
354 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
355 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
356 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
357 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
358 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
359 \ ''
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
360 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
361 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
362 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
363 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
364 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
365 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
366 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
367 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
368 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
369 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
370 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
371 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
372 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
373 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
374 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
375 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
376 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
377 \ 'b322b'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
378 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
379 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
380 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
381 \ 'name' : 'Reverse hexadecimal sort',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
382 \ 'cmd' : 'sort! x',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
383 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
384 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
385 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
386 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
387 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
388 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
389 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
390 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
391 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
392 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
393 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
394 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
395 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
396 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
397 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
398 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
399 \ ''
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
400 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
401 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
402 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
403 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
404 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
405 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
406 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
407 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
408 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
409 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
410 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
411 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
412 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
413 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
414 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
415 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
416 \ '',
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 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
420 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
421 \ 'name' : 'Alpha (skip first character) sort',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
422 \ 'cmd' : 'sort/./',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
423 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
424 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
425 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
426 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
427 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
428 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
429 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
430 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
431 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
432 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
433 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
434 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
435 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
436 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
437 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
438 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
439 \ ''
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
440 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
441 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
442 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
443 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
444 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
445 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
446 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
447 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
448 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
449 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
450 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
451 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
452 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
453 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
454 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
455 \ 'b322b',
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 \ 'abc'
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 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
461 \ '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
462 \ 'cmd' : 'sort/../',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
463 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
464 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
465 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
466 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
467 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
468 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
469 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
470 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
471 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
472 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
473 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
474 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
475 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
476 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
477 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
478 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
479 \ ''
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
480 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
481 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
482 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
483 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
484 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
485 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
486 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
487 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
488 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
489 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
490 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
491 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
492 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
493 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
494 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
495 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
496 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
497 \ 'abc'
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 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
500 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
501 \ '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
502 \ 'cmd' : 'sort/../u',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
503 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
504 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
505 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
506 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
507 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
508 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
509 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
510 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
511 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
512 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
513 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
514 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
515 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
516 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
517 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
518 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
519 \ ''
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
520 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
521 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
522 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
523 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
524 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
525 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
526 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
527 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
528 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
529 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
530 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
531 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
532 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
533 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
534 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
535 \ 'abc'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
536 \ ]
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 \ 'name' : 'numeric, skip first character',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
540 \ 'cmd' : 'sort/./n',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
541 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
542 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
543 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
544 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
545 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
546 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
547 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
548 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
549 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
550 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
551 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
552 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
553 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
554 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
555 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
556 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
557 \ ''
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
558 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
559 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
560 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
561 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
562 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
563 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
564 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
565 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
566 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
567 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
568 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
569 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
570 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
571 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
572 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
573 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
574 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
575 \ 'b322b'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
576 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
577 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
578 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
579 \ 'name' : 'alpha, sort on first character',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
580 \ 'cmd' : 'sort/./r',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
581 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
582 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
583 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
584 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
585 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
586 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
587 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
588 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
589 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
590 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
591 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
592 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
593 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
594 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
595 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
596 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
597 \ ''
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
598 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
599 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
600 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
601 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
602 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
603 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
604 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
605 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
606 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
607 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
608 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
609 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
610 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
611 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
612 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
613 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
614 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
615 \ 'c321d'
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 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
618 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
619 \ '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
620 \ 'cmd' : 'sort/../r',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
621 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
622 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
623 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
624 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
625 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
626 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
627 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
628 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
629 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
630 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
631 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
632 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
633 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
634 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
635 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
636 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
637 \ ''
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
638 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
639 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
640 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
641 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
642 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
643 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
644 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
645 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
646 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
647 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
648 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
649 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
650 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
651 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
652 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
653 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
654 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
655 \ 'c321d'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
656 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
657 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
658 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
659 \ 'name' : 'numeric, sort on first character',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
660 \ 'cmd' : 'sort/./rn',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
661 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
662 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
663 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
664 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
665 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
666 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
667 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
668 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
669 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
670 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
671 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
672 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
673 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
674 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
675 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
676 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
677 \ ''
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
678 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
679 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
680 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
681 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
682 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
683 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
684 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
685 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
686 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
687 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
688 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
689 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
690 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
691 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
692 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
693 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
694 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
695 \ ''
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
696 \ ]
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 \ 'name' : 'alpha, skip past first digit',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
700 \ 'cmd' : 'sort/\d/',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
701 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
702 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
703 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
704 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
705 \ 'a321',
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 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
708 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
709 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
710 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
711 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
712 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
713 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
714 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
715 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
716 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
717 \ ''
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
718 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
719 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
720 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
721 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
722 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
723 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
724 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
725 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
726 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
727 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
728 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
729 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
730 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
731 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
732 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
733 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
734 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
735 \ 'c123d'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
736 \ ]
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 \ 'name' : 'alpha, sort on first digit',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
740 \ 'cmd' : 'sort/\d/r',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
741 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
742 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
743 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
744 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
745 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
746 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
747 \ 'a122',
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 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
750 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
751 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
752 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
753 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
754 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
755 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
756 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
757 \ ''
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
758 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
759 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
760 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
761 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
762 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
763 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
764 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
765 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
766 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
767 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
768 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
769 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
770 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
771 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
772 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
773 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
774 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
775 \ 'b321b'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
776 \ ]
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 \ 'name' : 'numeric, skip past first digit',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
780 \ 'cmd' : 'sort/\d/n',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
781 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
782 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
783 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
784 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
785 \ 'a321',
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 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
788 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
789 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
790 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
791 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
792 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
793 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
794 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
795 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
796 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
797 \ ''
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
798 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
799 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
800 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
801 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
802 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
803 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
804 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
805 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
806 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
807 \ 'c321d',
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 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
811 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
812 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
813 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
814 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
815 \ ' 123b'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
816 \ ]
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 \ 'name' : 'numeric, sort on first digit',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
820 \ 'cmd' : 'sort/\d/rn',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
821 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
822 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
823 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
824 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
825 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
826 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
827 \ 'a122',
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 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
830 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
831 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
832 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
833 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
834 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
835 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
836 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
837 \ ''
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
838 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
839 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
840 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
841 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
842 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
843 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
844 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
845 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
846 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
847 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
848 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
849 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
850 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
851 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
852 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
853 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
854 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
855 \ 'b321b'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
856 \ ]
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 \ '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
860 \ 'cmd' : 'sort/\d\d/',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
861 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
862 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
863 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
864 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
865 \ 'a321',
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 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
868 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
869 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
870 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
871 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
872 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
873 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
874 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
875 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
876 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
877 \ ''
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
878 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
879 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
880 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
881 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
882 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
883 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
884 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
885 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
886 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
887 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
888 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
889 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
890 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
891 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
892 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
893 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
894 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
895 \ 'c123d'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
896 \ ]
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 \ '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
900 \ 'cmd' : 'sort/\d\d/n',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
901 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
902 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
903 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
904 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
905 \ 'a321',
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 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
908 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
909 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
910 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
911 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
912 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
913 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
914 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
915 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
916 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
917 \ ''
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
918 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
919 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
920 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
921 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
922 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
923 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
924 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
925 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
926 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
927 \ 'c321d',
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 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
931 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
932 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
933 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
934 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
935 \ ' 123b'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
936 \ ]
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 \ '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
940 \ 'cmd' : 'sort/\d\d/x',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
941 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
942 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
943 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
944 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
945 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
946 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
947 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
948 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
949 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
950 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
951 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
952 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
953 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
954 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
955 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
956 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
957 \ ''
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
958 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
959 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
960 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
961 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
962 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
963 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
964 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
965 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
966 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
967 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
968 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
969 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
970 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
971 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
972 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
973 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
974 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
975 \ 'c123d'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
976 \ ]
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 \ '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
980 \ 'cmd' : 'sort/\d\d/r',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
981 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
982 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
983 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
984 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
985 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
986 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
987 \ 'a122',
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 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
990 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
991 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
992 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
993 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
994 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
995 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
996 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
997 \ ''
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
998 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
999 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1000 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1001 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1002 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1003 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1004 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1005 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1006 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1007 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1008 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1009 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1010 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1011 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1012 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1013 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1014 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1015 \ 'b321b'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1016 \ ]
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 \ '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
1020 \ 'cmd' : 'sort/\d\d/rn',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1021 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1022 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1023 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1024 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1025 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1026 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1027 \ 'a122',
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 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1030 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1031 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1032 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1033 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1034 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1035 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1036 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1037 \ ''
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1038 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1039 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1040 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1041 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1042 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1043 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1044 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1045 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1046 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1047 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1048 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1049 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1050 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1051 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1052 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1053 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1054 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1055 \ 'b321b'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1056 \ ]
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 \ '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
1060 \ 'cmd' : 'sort/\d\d/rx',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1061 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1062 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1063 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1064 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1065 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1066 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1067 \ 'a122',
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 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1070 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1071 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1072 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1073 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1074 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1075 \ 'b321b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1076 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1077 \ ''
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1078 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1079 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1080 \ 'abc',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1081 \ 'ab',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1082 \ 'a',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1083 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1084 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1085 \ 'a123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1086 \ 'a122',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1087 \ 'b123',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1088 \ 'c123d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1089 \ ' 123b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1090 \ 'a321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1091 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1092 \ 'c321d',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1093 \ 'b322b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1094 \ 'b321',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1095 \ 'b321b'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1096 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1097 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1098 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1099 \ 'name' : 'binary',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1100 \ 'cmd' : 'sort b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1101 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1102 \ '0b111000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1103 \ '0b101100',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1104 \ '0b101001',
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 \ '0b101000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1107 \ '0b000000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1108 \ '0b001000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1109 \ '0b010000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1110 \ '0b101000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1111 \ '0b100000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1112 \ '0b101010',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1113 \ '0b100010',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1114 \ '0b100100',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1115 \ '0b100010',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1116 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1117 \ ''
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1118 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1119 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1120 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1121 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1122 \ '0b000000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1123 \ '0b001000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1124 \ '0b010000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1125 \ '0b100000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1126 \ '0b100010',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1127 \ '0b100010',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1128 \ '0b100100',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1129 \ '0b101000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1130 \ '0b101000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1131 \ '0b101001',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1132 \ '0b101001',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1133 \ '0b101010',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1134 \ '0b101100',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1135 \ '0b111000'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1136 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1137 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1138 \ {
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1139 \ 'name' : 'binary with leading characters',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1140 \ 'cmd' : 'sort b',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1141 \ 'input' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1142 \ '0b100010',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1143 \ '0b010000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1144 \ ' 0b101001',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1145 \ 'b0b101100',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1146 \ '0b100010',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1147 \ ' 0b100100',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1148 \ 'a0b001000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1149 \ '0b101000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1150 \ '0b101000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1151 \ 'a0b101001',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1152 \ 'ab0b100000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1153 \ '0b101010',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1154 \ '0b000000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1155 \ 'b0b111000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1156 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1157 \ ''
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1158 \ ],
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1159 \ 'expected' : [
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1160 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1161 \ '',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1162 \ '0b000000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1163 \ 'a0b001000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1164 \ '0b010000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1165 \ 'ab0b100000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1166 \ '0b100010',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1167 \ '0b100010',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1168 \ ' 0b100100',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1169 \ '0b101000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1170 \ '0b101000',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1171 \ ' 0b101001',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1172 \ 'a0b101001',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1173 \ '0b101010',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1174 \ 'b0b101100',
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1175 \ 'b0b111000'
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1176 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1177 \ },
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1178 \ {
14206
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1179 \ '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
1180 \ '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
1181 \ 'input' : [
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1182 \ 'a',
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1183 \ 'b',
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1184 \ 'c',
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1185 \ ],
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1186 \ 'expected' : [
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1187 \ 'a',
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1188 \ 'b',
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1189 \ 'c',
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1190 \ ]
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1191 \ },
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1192 \ {
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1193 \ '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
1194 \ '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
1195 \ 'input' : [
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1196 \ 'aa',
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1197 \ 'bb',
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1198 \ 'cc',
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1199 \ 'cc',
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1200 \ ],
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1201 \ 'expected' : [
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1202 \ 'aa',
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1203 \ 'bb',
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1204 \ 'cc',
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1205 \ ]
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1206 \ },
19231
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1207 \ {
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1208 \ 'name' : 'sort one line buffer',
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1209 \ 'cmd' : 'sort',
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1210 \ 'input' : [
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1211 \ 'single line'
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1212 \ ],
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1213 \ 'expected' : [
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1214 \ 'single line'
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1215 \ ]
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1216 \ },
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1217 \ {
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1218 \ 'name' : 'sort ignoring case',
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1219 \ 'cmd' : '%sort i',
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1220 \ 'input' : [
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1221 \ 'BB',
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1222 \ 'Cc',
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1223 \ 'aa'
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1224 \ ],
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1225 \ 'expected' : [
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1226 \ 'aa',
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1227 \ 'BB',
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1228 \ 'Cc'
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1229 \ ]
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1230 \ },
12523
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1231 \ ]
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1232
22770
3e4981de5636 patch 8.2.1933: cannot sort using locale ordering
Bram Moolenaar <Bram@vim.org>
parents: 22375
diff changeset
1233 " With the following locales, the accentuated letters are ordered
22774
8561ae67f85d patch 8.2.1935: sort test fails on Mac
Bram Moolenaar <Bram@vim.org>
parents: 22770
diff changeset
1234 " similarly to the non-accentuated letters.
8561ae67f85d patch 8.2.1935: sort test fails on Mac
Bram Moolenaar <Bram@vim.org>
parents: 22770
diff changeset
1235 " This does not appear to work on Mac
22796
d3694e3685d3 patch 8.2.1946: sort() with NULL string not tested
Bram Moolenaar <Bram@vim.org>
parents: 22774
diff changeset
1236 if v:collate =~? '^\(en\|es\|de\|fr\|it\|nl\).*\.utf-\?8$' && !has('mac')
22770
3e4981de5636 patch 8.2.1933: cannot sort using locale ordering
Bram Moolenaar <Bram@vim.org>
parents: 22375
diff changeset
1237 let tests += [
3e4981de5636 patch 8.2.1933: cannot sort using locale ordering
Bram Moolenaar <Bram@vim.org>
parents: 22375
diff changeset
1238 \ {
3e4981de5636 patch 8.2.1933: cannot sort using locale ordering
Bram Moolenaar <Bram@vim.org>
parents: 22375
diff changeset
1239 \ 'name' : 'sort with locale',
3e4981de5636 patch 8.2.1933: cannot sort using locale ordering
Bram Moolenaar <Bram@vim.org>
parents: 22375
diff changeset
1240 \ 'cmd' : '%sort l',
3e4981de5636 patch 8.2.1933: cannot sort using locale ordering
Bram Moolenaar <Bram@vim.org>
parents: 22375
diff changeset
1241 \ 'input' : [
3e4981de5636 patch 8.2.1933: cannot sort using locale ordering
Bram Moolenaar <Bram@vim.org>
parents: 22375
diff changeset
1242 \ 'A',
3e4981de5636 patch 8.2.1933: cannot sort using locale ordering
Bram Moolenaar <Bram@vim.org>
parents: 22375
diff changeset
1243 \ 'E',
3e4981de5636 patch 8.2.1933: cannot sort using locale ordering
Bram Moolenaar <Bram@vim.org>
parents: 22375
diff changeset
1244 \ 'O',
3e4981de5636 patch 8.2.1933: cannot sort using locale ordering
Bram Moolenaar <Bram@vim.org>
parents: 22375
diff changeset
1245 \ 'À',
3e4981de5636 patch 8.2.1933: cannot sort using locale ordering
Bram Moolenaar <Bram@vim.org>
parents: 22375
diff changeset
1246 \ 'È',
3e4981de5636 patch 8.2.1933: cannot sort using locale ordering
Bram Moolenaar <Bram@vim.org>
parents: 22375
diff changeset
1247 \ 'É',
3e4981de5636 patch 8.2.1933: cannot sort using locale ordering
Bram Moolenaar <Bram@vim.org>
parents: 22375
diff changeset
1248 \ 'Ô',
3e4981de5636 patch 8.2.1933: cannot sort using locale ordering
Bram Moolenaar <Bram@vim.org>
parents: 22375
diff changeset
1249 \ 'Œ',
3e4981de5636 patch 8.2.1933: cannot sort using locale ordering
Bram Moolenaar <Bram@vim.org>
parents: 22375
diff changeset
1250 \ 'Z',
3e4981de5636 patch 8.2.1933: cannot sort using locale ordering
Bram Moolenaar <Bram@vim.org>
parents: 22375
diff changeset
1251 \ 'a',
3e4981de5636 patch 8.2.1933: cannot sort using locale ordering
Bram Moolenaar <Bram@vim.org>
parents: 22375
diff changeset
1252 \ 'e',
3e4981de5636 patch 8.2.1933: cannot sort using locale ordering
Bram Moolenaar <Bram@vim.org>
parents: 22375
diff changeset
1253 \ 'o',
3e4981de5636 patch 8.2.1933: cannot sort using locale ordering
Bram Moolenaar <Bram@vim.org>
parents: 22375
diff changeset
1254 \ 'à',
3e4981de5636 patch 8.2.1933: cannot sort using locale ordering
Bram Moolenaar <Bram@vim.org>
parents: 22375
diff changeset
1255 \ 'è',
3e4981de5636 patch 8.2.1933: cannot sort using locale ordering
Bram Moolenaar <Bram@vim.org>
parents: 22375
diff changeset
1256 \ 'é',
3e4981de5636 patch 8.2.1933: cannot sort using locale ordering
Bram Moolenaar <Bram@vim.org>
parents: 22375
diff changeset
1257 \ 'ô',
3e4981de5636 patch 8.2.1933: cannot sort using locale ordering
Bram Moolenaar <Bram@vim.org>
parents: 22375
diff changeset
1258 \ 'œ',
3e4981de5636 patch 8.2.1933: cannot sort using locale ordering
Bram Moolenaar <Bram@vim.org>
parents: 22375
diff changeset
1259 \ 'z'
3e4981de5636 patch 8.2.1933: cannot sort using locale ordering
Bram Moolenaar <Bram@vim.org>
parents: 22375
diff changeset
1260 \ ],
3e4981de5636 patch 8.2.1933: cannot sort using locale ordering
Bram Moolenaar <Bram@vim.org>
parents: 22375
diff changeset
1261 \ 'expected' : [
3e4981de5636 patch 8.2.1933: cannot sort using locale ordering
Bram Moolenaar <Bram@vim.org>
parents: 22375
diff changeset
1262 \ 'a',
3e4981de5636 patch 8.2.1933: cannot sort using locale ordering
Bram Moolenaar <Bram@vim.org>
parents: 22375
diff changeset
1263 \ 'A',
3e4981de5636 patch 8.2.1933: cannot sort using locale ordering
Bram Moolenaar <Bram@vim.org>
parents: 22375
diff changeset
1264 \ 'à',
3e4981de5636 patch 8.2.1933: cannot sort using locale ordering
Bram Moolenaar <Bram@vim.org>
parents: 22375
diff changeset
1265 \ 'À',
3e4981de5636 patch 8.2.1933: cannot sort using locale ordering
Bram Moolenaar <Bram@vim.org>
parents: 22375
diff changeset
1266 \ 'e',
3e4981de5636 patch 8.2.1933: cannot sort using locale ordering
Bram Moolenaar <Bram@vim.org>
parents: 22375
diff changeset
1267 \ 'E',
3e4981de5636 patch 8.2.1933: cannot sort using locale ordering
Bram Moolenaar <Bram@vim.org>
parents: 22375
diff changeset
1268 \ 'é',
3e4981de5636 patch 8.2.1933: cannot sort using locale ordering
Bram Moolenaar <Bram@vim.org>
parents: 22375
diff changeset
1269 \ 'É',
3e4981de5636 patch 8.2.1933: cannot sort using locale ordering
Bram Moolenaar <Bram@vim.org>
parents: 22375
diff changeset
1270 \ 'è',
3e4981de5636 patch 8.2.1933: cannot sort using locale ordering
Bram Moolenaar <Bram@vim.org>
parents: 22375
diff changeset
1271 \ 'È',
3e4981de5636 patch 8.2.1933: cannot sort using locale ordering
Bram Moolenaar <Bram@vim.org>
parents: 22375
diff changeset
1272 \ 'o',
3e4981de5636 patch 8.2.1933: cannot sort using locale ordering
Bram Moolenaar <Bram@vim.org>
parents: 22375
diff changeset
1273 \ 'O',
3e4981de5636 patch 8.2.1933: cannot sort using locale ordering
Bram Moolenaar <Bram@vim.org>
parents: 22375
diff changeset
1274 \ 'ô',
3e4981de5636 patch 8.2.1933: cannot sort using locale ordering
Bram Moolenaar <Bram@vim.org>
parents: 22375
diff changeset
1275 \ 'Ô',
3e4981de5636 patch 8.2.1933: cannot sort using locale ordering
Bram Moolenaar <Bram@vim.org>
parents: 22375
diff changeset
1276 \ 'œ',
3e4981de5636 patch 8.2.1933: cannot sort using locale ordering
Bram Moolenaar <Bram@vim.org>
parents: 22375
diff changeset
1277 \ 'Œ',
3e4981de5636 patch 8.2.1933: cannot sort using locale ordering
Bram Moolenaar <Bram@vim.org>
parents: 22375
diff changeset
1278 \ 'z',
3e4981de5636 patch 8.2.1933: cannot sort using locale ordering
Bram Moolenaar <Bram@vim.org>
parents: 22375
diff changeset
1279 \ 'Z'
3e4981de5636 patch 8.2.1933: cannot sort using locale ordering
Bram Moolenaar <Bram@vim.org>
parents: 22375
diff changeset
1280 \ ]
3e4981de5636 patch 8.2.1933: cannot sort using locale ordering
Bram Moolenaar <Bram@vim.org>
parents: 22375
diff changeset
1281 \ },
3e4981de5636 patch 8.2.1933: cannot sort using locale ordering
Bram Moolenaar <Bram@vim.org>
parents: 22375
diff changeset
1282 \ ]
3e4981de5636 patch 8.2.1933: cannot sort using locale ordering
Bram Moolenaar <Bram@vim.org>
parents: 22375
diff changeset
1283 endif
19249
2a017e9dc6da patch 8.2.0183: tests fail when the float feature is disabled
Bram Moolenaar <Bram@vim.org>
parents: 19231
diff changeset
1284 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
1285 let tests += [
2a017e9dc6da patch 8.2.0183: tests fail when the float feature is disabled
Bram Moolenaar <Bram@vim.org>
parents: 19231
diff changeset
1286 \ {
2a017e9dc6da patch 8.2.0183: tests fail when the float feature is disabled
Bram Moolenaar <Bram@vim.org>
parents: 19231
diff changeset
1287 \ 'name' : 'float',
2a017e9dc6da patch 8.2.0183: tests fail when the float feature is disabled
Bram Moolenaar <Bram@vim.org>
parents: 19231
diff changeset
1288 \ '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
1289 \ 'input' : [
2a017e9dc6da patch 8.2.0183: tests fail when the float feature is disabled
Bram Moolenaar <Bram@vim.org>
parents: 19231
diff changeset
1290 \ '1.234',
2a017e9dc6da patch 8.2.0183: tests fail when the float feature is disabled
Bram Moolenaar <Bram@vim.org>
parents: 19231
diff changeset
1291 \ '0.88',
2a017e9dc6da patch 8.2.0183: tests fail when the float feature is disabled
Bram Moolenaar <Bram@vim.org>
parents: 19231
diff changeset
1292 \ ' + 123.456',
2a017e9dc6da patch 8.2.0183: tests fail when the float feature is disabled
Bram Moolenaar <Bram@vim.org>
parents: 19231
diff changeset
1293 \ '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
1294 \ '-1.1e3',
2a017e9dc6da patch 8.2.0183: tests fail when the float feature is disabled
Bram Moolenaar <Bram@vim.org>
parents: 19231
diff changeset
1295 \ '-1.01e3',
2a017e9dc6da patch 8.2.0183: tests fail when the float feature is disabled
Bram Moolenaar <Bram@vim.org>
parents: 19231
diff changeset
1296 \ '',
2a017e9dc6da patch 8.2.0183: tests fail when the float feature is disabled
Bram Moolenaar <Bram@vim.org>
parents: 19231
diff changeset
1297 \ ''
2a017e9dc6da patch 8.2.0183: tests fail when the float feature is disabled
Bram Moolenaar <Bram@vim.org>
parents: 19231
diff changeset
1298 \ ],
2a017e9dc6da patch 8.2.0183: tests fail when the float feature is disabled
Bram Moolenaar <Bram@vim.org>
parents: 19231
diff changeset
1299 \ 'expected' : [
2a017e9dc6da patch 8.2.0183: tests fail when the float feature is disabled
Bram Moolenaar <Bram@vim.org>
parents: 19231
diff changeset
1300 \ '',
2a017e9dc6da patch 8.2.0183: tests fail when the float feature is disabled
Bram Moolenaar <Bram@vim.org>
parents: 19231
diff changeset
1301 \ '',
2a017e9dc6da patch 8.2.0183: tests fail when the float feature is disabled
Bram Moolenaar <Bram@vim.org>
parents: 19231
diff changeset
1302 \ '-1.1e3',
2a017e9dc6da patch 8.2.0183: tests fail when the float feature is disabled
Bram Moolenaar <Bram@vim.org>
parents: 19231
diff changeset
1303 \ '-1.01e3',
2a017e9dc6da patch 8.2.0183: tests fail when the float feature is disabled
Bram Moolenaar <Bram@vim.org>
parents: 19231
diff changeset
1304 \ '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
1305 \ '0.88',
2a017e9dc6da patch 8.2.0183: tests fail when the float feature is disabled
Bram Moolenaar <Bram@vim.org>
parents: 19231
diff changeset
1306 \ '1.234',
2a017e9dc6da patch 8.2.0183: tests fail when the float feature is disabled
Bram Moolenaar <Bram@vim.org>
parents: 19231
diff changeset
1307 \ ' + 123.456'
2a017e9dc6da patch 8.2.0183: tests fail when the float feature is disabled
Bram Moolenaar <Bram@vim.org>
parents: 19231
diff changeset
1308 \ ]
2a017e9dc6da patch 8.2.0183: tests fail when the float feature is disabled
Bram Moolenaar <Bram@vim.org>
parents: 19231
diff changeset
1309 \ },
2a017e9dc6da patch 8.2.0183: tests fail when the float feature is disabled
Bram Moolenaar <Bram@vim.org>
parents: 19231
diff changeset
1310 \ ]
2a017e9dc6da patch 8.2.0183: tests fail when the float feature is disabled
Bram Moolenaar <Bram@vim.org>
parents: 19231
diff changeset
1311 endif
2a017e9dc6da patch 8.2.0183: tests fail when the float feature is disabled
Bram Moolenaar <Bram@vim.org>
parents: 19231
diff changeset
1312
12523
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1313 for t in tests
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1314 enew!
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1315 call append(0, t.input)
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1316 $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
1317 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
1318 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
1319
12523
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1320 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
1321
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1322 " 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
1323 " 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
1324 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
1325 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
1326 else
f2ab259ef88a patch 8.1.0120: buffer 'modified' set even when :sort has no changes
Christian Brabandt <cb@256bit.org>
parents: 12523
diff changeset
1327 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
1328 endif
12523
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1329 endfor
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1330
19231
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1331 " 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
1332 call setline(1, ['line1', 'line2'])
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1333 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
1334 call assert_fails('sort c', 'E475:')
20113
2c23053c654a patch 8.2.0612: Vim9: no check for space before #comment
Bram Moolenaar <Bram@vim.org>
parents: 20109
diff changeset
1335 call assert_fails('sort #pat%', 'E654:')
22375
595ea7f099cd patch 8.2.1736: failure to compile a pattern not tested much
Bram Moolenaar <Bram@vim.org>
parents: 21765
diff changeset
1336 call assert_fails('sort /\%(/', 'E53:')
12523
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1337
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1338 enew!
881564b89f9b patch 8.0.1140: still old style tests
Christian Brabandt <cb@256bit.org>
parents: 8352
diff changeset
1339 endfunc
14808
3d0b6e2a3a01 patch 8.1.0416: sort doesn't report deleted lines
Christian Brabandt <cb@256bit.org>
parents: 14206
diff changeset
1340
15906
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1341 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
1342 new
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1343 a
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1344 -2147483648
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1345 -2147483647
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1346
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1347 -1
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1348 0
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1349 1
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1350 -2147483646
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1351 2147483646
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1352 2147483647
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1353 2147483647
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1354 -2147483648
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1355 abc
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1356
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1357 .
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1358 " 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
1359 " 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
1360 sort n
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1361 call assert_equal(['',
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1362 \ 'abc',
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1363 \ '',
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1364 \ '-2147483648',
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1365 \ '-2147483648',
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1366 \ '-2147483647',
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1367 \ '-2147483646',
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1368 \ '-1',
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1369 \ '0',
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1370 \ '1',
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1371 \ '2147483646',
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1372 \ '2147483647',
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1373 \ '2147483647'], getline(1, '$'))
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1374 bwipe!
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1375
19427
fdfe44ac6a1a patch 8.2.0271: the "num64" feature is available everywhere
Bram Moolenaar <Bram@vim.org>
parents: 19370
diff changeset
1376 new
fdfe44ac6a1a patch 8.2.0271: the "num64" feature is available everywhere
Bram Moolenaar <Bram@vim.org>
parents: 19370
diff changeset
1377 a
15906
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1378 -9223372036854775808
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1379 -9223372036854775807
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1380
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1381 -1
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1382 0
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1383 1
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1384 -9223372036854775806
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1385 9223372036854775806
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1386 9223372036854775807
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1387 9223372036854775807
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1388 -9223372036854775808
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1389 abc
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1390
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1391 .
19427
fdfe44ac6a1a patch 8.2.0271: the "num64" feature is available everywhere
Bram Moolenaar <Bram@vim.org>
parents: 19370
diff changeset
1392 sort n
fdfe44ac6a1a patch 8.2.0271: the "num64" feature is available everywhere
Bram Moolenaar <Bram@vim.org>
parents: 19370
diff changeset
1393 call assert_equal(['',
fdfe44ac6a1a patch 8.2.0271: the "num64" feature is available everywhere
Bram Moolenaar <Bram@vim.org>
parents: 19370
diff changeset
1394 \ 'abc',
fdfe44ac6a1a patch 8.2.0271: the "num64" feature is available everywhere
Bram Moolenaar <Bram@vim.org>
parents: 19370
diff changeset
1395 \ '',
fdfe44ac6a1a patch 8.2.0271: the "num64" feature is available everywhere
Bram Moolenaar <Bram@vim.org>
parents: 19370
diff changeset
1396 \ '-9223372036854775808',
fdfe44ac6a1a patch 8.2.0271: the "num64" feature is available everywhere
Bram Moolenaar <Bram@vim.org>
parents: 19370
diff changeset
1397 \ '-9223372036854775808',
fdfe44ac6a1a patch 8.2.0271: the "num64" feature is available everywhere
Bram Moolenaar <Bram@vim.org>
parents: 19370
diff changeset
1398 \ '-9223372036854775807',
fdfe44ac6a1a patch 8.2.0271: the "num64" feature is available everywhere
Bram Moolenaar <Bram@vim.org>
parents: 19370
diff changeset
1399 \ '-9223372036854775806',
fdfe44ac6a1a patch 8.2.0271: the "num64" feature is available everywhere
Bram Moolenaar <Bram@vim.org>
parents: 19370
diff changeset
1400 \ '-1',
fdfe44ac6a1a patch 8.2.0271: the "num64" feature is available everywhere
Bram Moolenaar <Bram@vim.org>
parents: 19370
diff changeset
1401 \ '0',
fdfe44ac6a1a patch 8.2.0271: the "num64" feature is available everywhere
Bram Moolenaar <Bram@vim.org>
parents: 19370
diff changeset
1402 \ '1',
fdfe44ac6a1a patch 8.2.0271: the "num64" feature is available everywhere
Bram Moolenaar <Bram@vim.org>
parents: 19370
diff changeset
1403 \ '9223372036854775806',
fdfe44ac6a1a patch 8.2.0271: the "num64" feature is available everywhere
Bram Moolenaar <Bram@vim.org>
parents: 19370
diff changeset
1404 \ '9223372036854775807',
fdfe44ac6a1a patch 8.2.0271: the "num64" feature is available everywhere
Bram Moolenaar <Bram@vim.org>
parents: 19370
diff changeset
1405 \ '9223372036854775807'], getline(1, '$'))
fdfe44ac6a1a patch 8.2.0271: the "num64" feature is available everywhere
Bram Moolenaar <Bram@vim.org>
parents: 19370
diff changeset
1406 bwipe!
15906
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1407 endfunc
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1408
f581167d59bf patch 8.1.0959: sorting large numbers is not tested
Bram Moolenaar <Bram@vim.org>
parents: 14808
diff changeset
1409
14808
3d0b6e2a3a01 patch 8.1.0416: sort doesn't report deleted lines
Christian Brabandt <cb@256bit.org>
parents: 14206
diff changeset
1410 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
1411 enew!
3d0b6e2a3a01 patch 8.1.0416: sort doesn't report deleted lines
Christian Brabandt <cb@256bit.org>
parents: 14206
diff changeset
1412 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
1413 $delete _
3d0b6e2a3a01 patch 8.1.0416: sort doesn't report deleted lines
Christian Brabandt <cb@256bit.org>
parents: 14206
diff changeset
1414 setlocal nomodified
3d0b6e2a3a01 patch 8.1.0416: sort doesn't report deleted lines
Christian Brabandt <cb@256bit.org>
parents: 14206
diff changeset
1415 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
1416
3d0b6e2a3a01 patch 8.1.0416: sort doesn't report deleted lines
Christian Brabandt <cb@256bit.org>
parents: 14206
diff changeset
1417 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
1418 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
1419 enew!
3d0b6e2a3a01 patch 8.1.0416: sort doesn't report deleted lines
Christian Brabandt <cb@256bit.org>
parents: 14206
diff changeset
1420 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
1421 $delete _
3d0b6e2a3a01 patch 8.1.0416: sort doesn't report deleted lines
Christian Brabandt <cb@256bit.org>
parents: 14206
diff changeset
1422 setlocal nomodified report=10
3d0b6e2a3a01 patch 8.1.0416: sort doesn't report deleted lines
Christian Brabandt <cb@256bit.org>
parents: 14206
diff changeset
1423 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
1424
3d0b6e2a3a01 patch 8.1.0416: sort doesn't report deleted lines
Christian Brabandt <cb@256bit.org>
parents: 14206
diff changeset
1425 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
1426 call assert_equal("", res)
3d0b6e2a3a01 patch 8.1.0416: sort doesn't report deleted lines
Christian Brabandt <cb@256bit.org>
parents: 14206
diff changeset
1427 enew!
3d0b6e2a3a01 patch 8.1.0416: sort doesn't report deleted lines
Christian Brabandt <cb@256bit.org>
parents: 14206
diff changeset
1428 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
1429 $delete _
3d0b6e2a3a01 patch 8.1.0416: sort doesn't report deleted lines
Christian Brabandt <cb@256bit.org>
parents: 14206
diff changeset
1430 setl report&vim
3d0b6e2a3a01 patch 8.1.0416: sort doesn't report deleted lines
Christian Brabandt <cb@256bit.org>
parents: 14206
diff changeset
1431 setlocal nomodified
3d0b6e2a3a01 patch 8.1.0416: sort doesn't report deleted lines
Christian Brabandt <cb@256bit.org>
parents: 14206
diff changeset
1432 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
1433
3d0b6e2a3a01 patch 8.1.0416: sort doesn't report deleted lines
Christian Brabandt <cb@256bit.org>
parents: 14206
diff changeset
1434 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
1435 " 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
1436 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
1437 enew!
19231
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1438 endfunc
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1439
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1440 " 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
1441 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
1442 new
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1443 let var = ''
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1444 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
1445 %sort | let var = "sortcmdtest"
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1446 call assert_equal(var, "sortcmdtest")
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1447 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
1448 " 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
1449 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
1450 %sort /\d\+/ " sort alphabetically
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1451 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
1452 close!
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1453 endfunc
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1454
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1455 " 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
1456 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
1457 new
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1458 let @/ = '\d\+'
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1459 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
1460 sort //
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1461 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
1462 close!
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1463 endfunc
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1464
19370
02111977dd05 patch 8.2.0243: insufficient code coverage for ex_docmd.c functions
Bram Moolenaar <Bram@vim.org>
parents: 19308
diff changeset
1465 " 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
1466 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
1467 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
1468 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
1469 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
1470 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
1471 qall!
02111977dd05 patch 8.2.0243: insufficient code coverage for ex_docmd.c functions
Bram Moolenaar <Bram@vim.org>
parents: 19308
diff changeset
1472 [SCRIPT]
02111977dd05 patch 8.2.0243: insufficient code coverage for ex_docmd.c functions
Bram Moolenaar <Bram@vim.org>
parents: 19308
diff changeset
1473 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
1474 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
1475 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
1476 endif
02111977dd05 patch 8.2.0243: insufficient code coverage for ex_docmd.c functions
Bram Moolenaar <Bram@vim.org>
parents: 19308
diff changeset
1477 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
1478 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
1479 endfunc
02111977dd05 patch 8.2.0243: insufficient code coverage for ex_docmd.c functions
Bram Moolenaar <Bram@vim.org>
parents: 19308
diff changeset
1480
19231
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1481 " 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
1482 func Test_sort_with_marks()
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1483 new
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1484 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
1485 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
1486 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
1487 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
1488 %sort
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1489 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
1490 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
1491 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
1492 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
1493 close!
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1494 endfunc
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1495
b8fd7364befd patch 8.2.0174: various commands not completely tested
Bram Moolenaar <Bram@vim.org>
parents: 15906
diff changeset
1496 " vim: shiftwidth=2 sts=2 expandtab