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