Mercurial > vim
annotate src/testdir/test57.in @ 8410:05ec48deb353 v7.4.1496
commit https://github.com/vim/vim/commit/a96909cfaf21dbbf033e904ccdcda9905799f0fc
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Mar 5 22:19:41 2016 +0100
patch 7.4.1496
Problem: Crash when built with GUI but it's not active. (Dominique Pelle)
Solution: Check gui.in_use.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 05 Mar 2016 22:30:04 +0100 |
parents | 20dc2763a3b9 |
children |
rev | line source |
---|---|
293 | 1 Tests for :sort command. vim: set ft=vim : |
2 | |
3 STARTTEST | |
4 :so small.vim | |
5 :" | |
826 | 6 :/^t01:/+1,/^t02/-1sort |
7 :/^t02:/+1,/^t03/-1sort n | |
8 :/^t03:/+1,/^t04/-1sort x | |
9 :/^t04:/+1,/^t05/-1sort u | |
10 :/^t05:/+1,/^t06/-1sort! | |
11 :/^t06:/+1,/^t07/-1sort! n | |
12 :/^t07:/+1,/^t08/-1sort! u | |
13 :/^t08:/+1,/^t09/-1sort o | |
14 :/^t09:/+1,/^t10/-1sort! x | |
15 :/^t10:/+1,/^t11/-1sort/./ | |
16 :/^t11:/+1,/^t12/-1sort/../ | |
17 :/^t12:/+1,/^t13/-1sort/../u | |
18 :/^t13:/+1,/^t14/-1sort/./n | |
19 :/^t14:/+1,/^t15/-1sort/./r | |
20 :/^t15:/+1,/^t16/-1sort/../r | |
21 :/^t16:/+1,/^t17/-1sort/./rn | |
22 :/^t17:/+1,/^t18/-1sort/\d/ | |
23 :/^t18:/+1,/^t19/-1sort/\d/r | |
24 :/^t19:/+1,/^t20/-1sort/\d/n | |
25 :/^t20:/+1,/^t21/-1sort/\d/rn | |
26 :/^t21:/+1,/^t22/-1sort/\d\d/ | |
27 :/^t22:/+1,/^t23/-1sort/\d\d/n | |
28 :/^t23:/+1,/^t24/-1sort/\d\d/x | |
29 :/^t24:/+1,/^t25/-1sort/\d\d/r | |
30 :/^t25:/+1,/^t26/-1sort/\d\d/rn | |
31 :/^t26:/+1,/^t27/-1sort/\d\d/rx | |
32 :/^t27:/+1,/^t28/-1sort no | |
7447
ad432f8f68fb
commit https://github.com/vim/vim/commit/887c1fea4a114e7170091942d0446c8882701b5b
Christian Brabandt <cb@256bit.org>
parents:
2606
diff
changeset
|
33 :/^t28:/+1,/^t29/-1sort b |
ad432f8f68fb
commit https://github.com/vim/vim/commit/887c1fea4a114e7170091942d0446c8882701b5b
Christian Brabandt <cb@256bit.org>
parents:
2606
diff
changeset
|
34 :/^t29:/+1,/^t30/-1sort b |
7689
20dc2763a3b9
commit https://github.com/vim/vim/commit/f7edf40448a09e04eec3bd05e043f7fea93b07c9
Christian Brabandt <cb@256bit.org>
parents:
7447
diff
changeset
|
35 :/^t30:/+1,/^t31/-1sort f |
826 | 36 :/^t01:/,$wq! test.out |
293 | 37 ENDTEST |
38 | |
826 | 39 t01: alphebetical |
40 abc | |
41 ab | |
42 a | |
43 a321 | |
44 a123 | |
45 a122 | |
46 b321 | |
47 b123 | |
48 c123d | |
49 123b | |
50 c321d | |
51 b322b | |
52 b321 | |
53 b321b | |
54 | |
55 | |
56 t02: numeric | |
57 abc | |
58 ab | |
59 a321 | |
60 a123 | |
61 a122 | |
2606 | 62 a |
63 x-22 | |
826 | 64 b321 |
65 b123 | |
2606 | 66 |
826 | 67 c123d |
2606 | 68 -24 |
826 | 69 123b |
70 c321d | |
2606 | 71 0 |
826 | 72 b322b |
73 b321 | |
74 b321b | |
75 | |
76 | |
77 t03: hexadecimal | |
78 abc | |
79 ab | |
80 a | |
81 a321 | |
82 a123 | |
83 a122 | |
84 b321 | |
85 b123 | |
86 c123d | |
87 123b | |
88 c321d | |
89 b322b | |
90 b321 | |
91 b321b | |
92 | |
93 | |
94 t04: alpha, unique | |
95 abc | |
96 ab | |
97 a | |
98 a321 | |
99 a123 | |
100 a122 | |
101 b321 | |
102 b123 | |
103 c123d | |
104 123b | |
105 c321d | |
106 b322b | |
107 b321 | |
108 b321b | |
109 | |
110 | |
111 t05: alpha, reverse | |
112 abc | |
113 ab | |
114 a | |
115 a321 | |
116 a123 | |
117 a122 | |
118 b321 | |
119 b123 | |
120 c123d | |
121 123b | |
122 c321d | |
123 b322b | |
124 b321 | |
125 b321b | |
126 | |
127 | |
128 t06: numeric, reverse | |
129 abc | |
130 ab | |
131 a | |
132 a321 | |
133 a123 | |
134 a122 | |
135 b321 | |
136 b123 | |
137 c123d | |
138 123b | |
139 c321d | |
140 b322b | |
141 b321 | |
142 b321b | |
143 | |
144 | |
145 t07: unique, reverse | |
146 abc | |
147 ab | |
148 a | |
149 a321 | |
150 a123 | |
151 a122 | |
152 b321 | |
153 b123 | |
154 c123d | |
155 123b | |
156 c321d | |
157 b322b | |
158 b321 | |
159 b321b | |
160 | |
161 | |
162 t08: octal | |
163 abc | |
164 ab | |
165 a | |
166 a321 | |
167 a123 | |
168 a122 | |
169 b321 | |
170 b123 | |
171 c123d | |
172 123b | |
173 c321d | |
174 b322b | |
175 b321 | |
176 b321b | |
177 | |
178 | |
179 t09: reverse, hexadecimal | |
180 abc | |
181 ab | |
182 a | |
183 a321 | |
184 a123 | |
185 a122 | |
186 b321 | |
187 b123 | |
188 c123d | |
189 123b | |
190 c321d | |
191 b322b | |
192 b321 | |
193 b321b | |
194 | |
195 | |
196 t10: alpha, skip first character | |
197 abc | |
198 ab | |
199 a | |
200 a321 | |
201 a123 | |
202 a122 | |
203 b321 | |
204 b123 | |
205 c123d | |
206 123b | |
207 c321d | |
208 b322b | |
209 b321 | |
210 b321b | |
211 | |
212 | |
213 t11: alpha, skip first 2 characters | |
214 abc | |
215 ab | |
216 a | |
217 a321 | |
218 a123 | |
219 a122 | |
220 b321 | |
221 b123 | |
222 c123d | |
223 123b | |
224 c321d | |
225 b322b | |
226 b321 | |
227 b321b | |
228 | |
229 | |
230 t12: alpha, unique, skip first 2 characters | |
231 abc | |
232 ab | |
233 a | |
234 a321 | |
235 a123 | |
236 a122 | |
237 b321 | |
238 b123 | |
239 c123d | |
240 123b | |
241 c321d | |
242 b322b | |
243 b321 | |
244 b321b | |
245 | |
246 | |
247 t13: numeric, skip first character | |
248 abc | |
249 ab | |
250 a | |
251 a321 | |
252 a123 | |
253 a122 | |
254 b321 | |
255 b123 | |
256 c123d | |
257 123b | |
258 c321d | |
259 b322b | |
260 b321 | |
261 b321b | |
262 | |
263 | |
264 t14: alpha, sort on first character | |
265 abc | |
266 ab | |
267 a | |
268 a321 | |
269 a123 | |
270 a122 | |
271 b321 | |
272 b123 | |
273 c123d | |
274 123b | |
275 c321d | |
276 b322b | |
277 b321 | |
278 b321b | |
279 | |
280 | |
281 t15: alpha, sort on first 2 characters | |
282 abc | |
283 ab | |
284 a | |
285 a321 | |
286 a123 | |
287 a122 | |
288 b321 | |
289 b123 | |
290 c123d | |
291 123b | |
292 c321d | |
293 b322b | |
294 b321 | |
295 b321b | |
296 | |
297 | |
298 t16: numeric, sort on first character | |
299 abc | |
300 ab | |
301 a | |
302 a321 | |
303 a123 | |
304 a122 | |
305 b321 | |
306 b123 | |
307 c123d | |
308 123b | |
309 c321d | |
310 b322b | |
311 b321 | |
312 b321b | |
313 | |
314 | |
315 t17: alpha, skip past first digit | |
316 abc | |
317 ab | |
318 a | |
319 a321 | |
320 a123 | |
321 a122 | |
322 b321 | |
323 b123 | |
324 c123d | |
325 123b | |
326 c321d | |
327 b322b | |
328 b321 | |
329 b321b | |
330 | |
331 | |
332 t18: alpha, sort on first digit | |
333 abc | |
334 ab | |
335 a | |
336 a321 | |
337 a123 | |
338 a122 | |
339 b321 | |
340 b123 | |
341 c123d | |
342 123b | |
343 c321d | |
344 b322b | |
345 b321 | |
346 b321b | |
347 | |
348 | |
349 t19: numeric, skip past first digit | |
350 abc | |
351 ab | |
352 a | |
353 a321 | |
354 a123 | |
355 a122 | |
356 b321 | |
357 b123 | |
358 c123d | |
359 123b | |
360 c321d | |
361 b322b | |
362 b321 | |
363 b321b | |
364 | |
365 | |
366 t20: numeric, sort on first digit | |
367 abc | |
368 ab | |
369 a | |
370 a321 | |
371 a123 | |
372 a122 | |
373 b321 | |
374 b123 | |
375 c123d | |
376 123b | |
377 c321d | |
378 b322b | |
379 b321 | |
380 b321b | |
381 | |
382 | |
383 t21: alpha, skip past first 2 digits | |
384 abc | |
385 ab | |
386 a | |
387 a321 | |
388 a123 | |
389 a122 | |
390 b321 | |
391 b123 | |
392 c123d | |
393 123b | |
394 c321d | |
395 b322b | |
396 b321 | |
397 b321b | |
398 | |
399 | |
400 t22: numeric, skip past first 2 digits | |
401 abc | |
402 ab | |
403 a | |
404 a321 | |
405 a123 | |
406 a122 | |
407 b321 | |
408 b123 | |
409 c123d | |
410 123b | |
411 c321d | |
412 b322b | |
413 b321 | |
414 b321b | |
415 | |
416 | |
417 t23: hexadecimal, skip past first 2 digits | |
418 abc | |
419 ab | |
420 a | |
421 a321 | |
422 a123 | |
423 a122 | |
424 b321 | |
425 b123 | |
426 c123d | |
427 123b | |
428 c321d | |
429 b322b | |
430 b321 | |
431 b321b | |
432 | |
433 | |
434 t24: alpha, sort on first 2 digits | |
435 abc | |
436 ab | |
437 a | |
438 a321 | |
439 a123 | |
440 a122 | |
441 b321 | |
442 b123 | |
443 c123d | |
444 123b | |
445 c321d | |
446 b322b | |
447 b321 | |
448 b321b | |
449 | |
450 | |
451 t25: numeric, sort on first 2 digits | |
452 abc | |
453 ab | |
454 a | |
455 a321 | |
456 a123 | |
457 a122 | |
458 b321 | |
459 b123 | |
460 c123d | |
461 123b | |
462 c321d | |
463 b322b | |
464 b321 | |
465 b321b | |
466 | |
467 | |
468 t26: hexadecimal, sort on first 2 digits | |
469 abc | |
470 ab | |
471 a | |
472 a321 | |
473 a123 | |
474 a122 | |
475 b321 | |
476 b123 | |
477 c123d | |
478 123b | |
479 c321d | |
480 b322b | |
481 b321 | |
482 b321b | |
483 | |
484 | |
485 t27: wrong arguments | |
486 abc | |
487 ab | |
488 a | |
489 a321 | |
490 a123 | |
491 a122 | |
492 b321 | |
493 b123 | |
494 c123d | |
495 123b | |
496 c321d | |
497 b322b | |
498 b321 | |
499 b321b | |
500 | |
501 | |
7689
20dc2763a3b9
commit https://github.com/vim/vim/commit/f7edf40448a09e04eec3bd05e043f7fea93b07c9
Christian Brabandt <cb@256bit.org>
parents:
7447
diff
changeset
|
502 t28: binary |
7447
ad432f8f68fb
commit https://github.com/vim/vim/commit/887c1fea4a114e7170091942d0446c8882701b5b
Christian Brabandt <cb@256bit.org>
parents:
2606
diff
changeset
|
503 0b111000 |
ad432f8f68fb
commit https://github.com/vim/vim/commit/887c1fea4a114e7170091942d0446c8882701b5b
Christian Brabandt <cb@256bit.org>
parents:
2606
diff
changeset
|
504 0b101100 |
ad432f8f68fb
commit https://github.com/vim/vim/commit/887c1fea4a114e7170091942d0446c8882701b5b
Christian Brabandt <cb@256bit.org>
parents:
2606
diff
changeset
|
505 0b101001 |
ad432f8f68fb
commit https://github.com/vim/vim/commit/887c1fea4a114e7170091942d0446c8882701b5b
Christian Brabandt <cb@256bit.org>
parents:
2606
diff
changeset
|
506 0b101001 |
ad432f8f68fb
commit https://github.com/vim/vim/commit/887c1fea4a114e7170091942d0446c8882701b5b
Christian Brabandt <cb@256bit.org>
parents:
2606
diff
changeset
|
507 0b101000 |
ad432f8f68fb
commit https://github.com/vim/vim/commit/887c1fea4a114e7170091942d0446c8882701b5b
Christian Brabandt <cb@256bit.org>
parents:
2606
diff
changeset
|
508 0b000000 |
ad432f8f68fb
commit https://github.com/vim/vim/commit/887c1fea4a114e7170091942d0446c8882701b5b
Christian Brabandt <cb@256bit.org>
parents:
2606
diff
changeset
|
509 0b001000 |
ad432f8f68fb
commit https://github.com/vim/vim/commit/887c1fea4a114e7170091942d0446c8882701b5b
Christian Brabandt <cb@256bit.org>
parents:
2606
diff
changeset
|
510 0b010000 |
ad432f8f68fb
commit https://github.com/vim/vim/commit/887c1fea4a114e7170091942d0446c8882701b5b
Christian Brabandt <cb@256bit.org>
parents:
2606
diff
changeset
|
511 0b101000 |
ad432f8f68fb
commit https://github.com/vim/vim/commit/887c1fea4a114e7170091942d0446c8882701b5b
Christian Brabandt <cb@256bit.org>
parents:
2606
diff
changeset
|
512 0b100000 |
ad432f8f68fb
commit https://github.com/vim/vim/commit/887c1fea4a114e7170091942d0446c8882701b5b
Christian Brabandt <cb@256bit.org>
parents:
2606
diff
changeset
|
513 0b101010 |
ad432f8f68fb
commit https://github.com/vim/vim/commit/887c1fea4a114e7170091942d0446c8882701b5b
Christian Brabandt <cb@256bit.org>
parents:
2606
diff
changeset
|
514 0b100010 |
ad432f8f68fb
commit https://github.com/vim/vim/commit/887c1fea4a114e7170091942d0446c8882701b5b
Christian Brabandt <cb@256bit.org>
parents:
2606
diff
changeset
|
515 0b100100 |
ad432f8f68fb
commit https://github.com/vim/vim/commit/887c1fea4a114e7170091942d0446c8882701b5b
Christian Brabandt <cb@256bit.org>
parents:
2606
diff
changeset
|
516 0b100010 |
826 | 517 |
7447
ad432f8f68fb
commit https://github.com/vim/vim/commit/887c1fea4a114e7170091942d0446c8882701b5b
Christian Brabandt <cb@256bit.org>
parents:
2606
diff
changeset
|
518 |
7689
20dc2763a3b9
commit https://github.com/vim/vim/commit/f7edf40448a09e04eec3bd05e043f7fea93b07c9
Christian Brabandt <cb@256bit.org>
parents:
7447
diff
changeset
|
519 t29: binary with leading characters |
7447
ad432f8f68fb
commit https://github.com/vim/vim/commit/887c1fea4a114e7170091942d0446c8882701b5b
Christian Brabandt <cb@256bit.org>
parents:
2606
diff
changeset
|
520 0b100010 |
ad432f8f68fb
commit https://github.com/vim/vim/commit/887c1fea4a114e7170091942d0446c8882701b5b
Christian Brabandt <cb@256bit.org>
parents:
2606
diff
changeset
|
521 0b010000 |
ad432f8f68fb
commit https://github.com/vim/vim/commit/887c1fea4a114e7170091942d0446c8882701b5b
Christian Brabandt <cb@256bit.org>
parents:
2606
diff
changeset
|
522 0b101001 |
ad432f8f68fb
commit https://github.com/vim/vim/commit/887c1fea4a114e7170091942d0446c8882701b5b
Christian Brabandt <cb@256bit.org>
parents:
2606
diff
changeset
|
523 b0b101100 |
ad432f8f68fb
commit https://github.com/vim/vim/commit/887c1fea4a114e7170091942d0446c8882701b5b
Christian Brabandt <cb@256bit.org>
parents:
2606
diff
changeset
|
524 0b100010 |
ad432f8f68fb
commit https://github.com/vim/vim/commit/887c1fea4a114e7170091942d0446c8882701b5b
Christian Brabandt <cb@256bit.org>
parents:
2606
diff
changeset
|
525 0b100100 |
ad432f8f68fb
commit https://github.com/vim/vim/commit/887c1fea4a114e7170091942d0446c8882701b5b
Christian Brabandt <cb@256bit.org>
parents:
2606
diff
changeset
|
526 a0b001000 |
ad432f8f68fb
commit https://github.com/vim/vim/commit/887c1fea4a114e7170091942d0446c8882701b5b
Christian Brabandt <cb@256bit.org>
parents:
2606
diff
changeset
|
527 0b101000 |
ad432f8f68fb
commit https://github.com/vim/vim/commit/887c1fea4a114e7170091942d0446c8882701b5b
Christian Brabandt <cb@256bit.org>
parents:
2606
diff
changeset
|
528 0b101000 |
ad432f8f68fb
commit https://github.com/vim/vim/commit/887c1fea4a114e7170091942d0446c8882701b5b
Christian Brabandt <cb@256bit.org>
parents:
2606
diff
changeset
|
529 a0b101001 |
ad432f8f68fb
commit https://github.com/vim/vim/commit/887c1fea4a114e7170091942d0446c8882701b5b
Christian Brabandt <cb@256bit.org>
parents:
2606
diff
changeset
|
530 ab0b100000 |
ad432f8f68fb
commit https://github.com/vim/vim/commit/887c1fea4a114e7170091942d0446c8882701b5b
Christian Brabandt <cb@256bit.org>
parents:
2606
diff
changeset
|
531 0b101010 |
ad432f8f68fb
commit https://github.com/vim/vim/commit/887c1fea4a114e7170091942d0446c8882701b5b
Christian Brabandt <cb@256bit.org>
parents:
2606
diff
changeset
|
532 0b000000 |
ad432f8f68fb
commit https://github.com/vim/vim/commit/887c1fea4a114e7170091942d0446c8882701b5b
Christian Brabandt <cb@256bit.org>
parents:
2606
diff
changeset
|
533 b0b111000 |
7689
20dc2763a3b9
commit https://github.com/vim/vim/commit/f7edf40448a09e04eec3bd05e043f7fea93b07c9
Christian Brabandt <cb@256bit.org>
parents:
7447
diff
changeset
|
534 |
20dc2763a3b9
commit https://github.com/vim/vim/commit/f7edf40448a09e04eec3bd05e043f7fea93b07c9
Christian Brabandt <cb@256bit.org>
parents:
7447
diff
changeset
|
535 |
20dc2763a3b9
commit https://github.com/vim/vim/commit/f7edf40448a09e04eec3bd05e043f7fea93b07c9
Christian Brabandt <cb@256bit.org>
parents:
7447
diff
changeset
|
536 t30: float |
20dc2763a3b9
commit https://github.com/vim/vim/commit/f7edf40448a09e04eec3bd05e043f7fea93b07c9
Christian Brabandt <cb@256bit.org>
parents:
7447
diff
changeset
|
537 1.234 |
20dc2763a3b9
commit https://github.com/vim/vim/commit/f7edf40448a09e04eec3bd05e043f7fea93b07c9
Christian Brabandt <cb@256bit.org>
parents:
7447
diff
changeset
|
538 0.88 |
20dc2763a3b9
commit https://github.com/vim/vim/commit/f7edf40448a09e04eec3bd05e043f7fea93b07c9
Christian Brabandt <cb@256bit.org>
parents:
7447
diff
changeset
|
539 123.456 |
20dc2763a3b9
commit https://github.com/vim/vim/commit/f7edf40448a09e04eec3bd05e043f7fea93b07c9
Christian Brabandt <cb@256bit.org>
parents:
7447
diff
changeset
|
540 1.15e-6 |
20dc2763a3b9
commit https://github.com/vim/vim/commit/f7edf40448a09e04eec3bd05e043f7fea93b07c9
Christian Brabandt <cb@256bit.org>
parents:
7447
diff
changeset
|
541 -1.1e3 |
20dc2763a3b9
commit https://github.com/vim/vim/commit/f7edf40448a09e04eec3bd05e043f7fea93b07c9
Christian Brabandt <cb@256bit.org>
parents:
7447
diff
changeset
|
542 -1.01e3 |
20dc2763a3b9
commit https://github.com/vim/vim/commit/f7edf40448a09e04eec3bd05e043f7fea93b07c9
Christian Brabandt <cb@256bit.org>
parents:
7447
diff
changeset
|
543 |
20dc2763a3b9
commit https://github.com/vim/vim/commit/f7edf40448a09e04eec3bd05e043f7fea93b07c9
Christian Brabandt <cb@256bit.org>
parents:
7447
diff
changeset
|
544 |
20dc2763a3b9
commit https://github.com/vim/vim/commit/f7edf40448a09e04eec3bd05e043f7fea93b07c9
Christian Brabandt <cb@256bit.org>
parents:
7447
diff
changeset
|
545 t31: done |