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