blob: 7e70169ce27d2e1a46e241fe1a99d4836191500f [file] [log] [blame]
Bram Moolenaar5c06f8b2005-05-31 22:14:58 +00001Tests for :sort command. vim: set ft=vim :
2
3STARTTEST
4:so small.vim
5:"
6:/^t1:/+1,/^t2/-1sort
7:/^t2:/+1,/^t3/-1sort u
8:/^t3:/+1,/^t4/-1sort u /[^:]*:/
9:/^t4:/+1,/^t5/-1sort n
10:/^t5:/+1,/^t6/-1sort n -[^:]*:-
11:/^t6:/+1,/^t7/-1sort o
12:/^t7:/+1,/^t8/-1sort x ,.*/,
13:/^t8:/+1,/^t9/-1sort n o
14:/^t1:/,$wq! test.out
15ENDTEST
16
17t1: alphabetical
18two test
19One test
20one test
21Two test
22t2: alpha, unique
23One test
24one test
25Two test
26one test
27Two test
28t3: alpha, unique, skip pattern
29one: xay
30two: aaa
31another: tuvy
32t4: number
33asdf 83 asd
34one 333
35xce 9
36t5: number and skip
37asdf 3 a: sd 11
38one 33:4 99
39:9
40t6: octal
412389
42111
43asdf 0014
44t7: hex and skip
45sf/0x1d3
460x44/1a1
47asd/ad 1413
48t8: wrong arguments
49ccc
50bbb
51aaa
52t8: