comparison src/testdir/test57.in @ 7689:20dc2763a3b9 v7.4.1143

commit https://github.com/vim/vim/commit/f7edf40448a09e04eec3bd05e043f7fea93b07c9 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jan 19 23:36:15 2016 +0100 patch 7.4.1143 Problem: Can't sort on floating point numbers. Solution: Add the "f" flag to ":sort". (Alex Jakushev) Also add the "f" flag to sort().
author Christian Brabandt <cb@256bit.org>
date Tue, 19 Jan 2016 23:45:05 +0100
parents ad432f8f68fb
children
comparison
equal deleted inserted replaced
7688:f56cebad5ba2 7689:20dc2763a3b9
30 :/^t25:/+1,/^t26/-1sort/\d\d/rn 30 :/^t25:/+1,/^t26/-1sort/\d\d/rn
31 :/^t26:/+1,/^t27/-1sort/\d\d/rx 31 :/^t26:/+1,/^t27/-1sort/\d\d/rx
32 :/^t27:/+1,/^t28/-1sort no 32 :/^t27:/+1,/^t28/-1sort no
33 :/^t28:/+1,/^t29/-1sort b 33 :/^t28:/+1,/^t29/-1sort b
34 :/^t29:/+1,/^t30/-1sort b 34 :/^t29:/+1,/^t30/-1sort b
35 :/^t30:/+1,/^t31/-1sort f
35 :/^t01:/,$wq! test.out 36 :/^t01:/,$wq! test.out
36 ENDTEST 37 ENDTEST
37 38
38 t01: alphebetical 39 t01: alphebetical
39 abc 40 abc
494 123b 495 123b
495 c321d 496 c321d
496 b322b 497 b322b
497 b321 498 b321
498 b321b 499 b321b
500
501
499 t28: binary 502 t28: binary
500
501
502 0b111000 503 0b111000
503 0b101100 504 0b101100
504 0b101001 505 0b101001
505 0b101001 506 0b101001
506 0b101000 507 0b101000
511 0b100000 512 0b100000
512 0b101010 513 0b101010
513 0b100010 514 0b100010
514 0b100100 515 0b100100
515 0b100010 516 0b100010
517
518
516 t29: binary with leading characters 519 t29: binary with leading characters
517
518
519 0b100010 520 0b100010
520 0b010000 521 0b010000
521 0b101001 522 0b101001
522 b0b101100 523 b0b101100
523 0b100010 524 0b100010
528 a0b101001 529 a0b101001
529 ab0b100000 530 ab0b100000
530 0b101010 531 0b101010
531 0b000000 532 0b000000
532 b0b111000 533 b0b111000
533 t30: done 534
535
536 t30: float
537 1.234
538 0.88
539 123.456
540 1.15e-6
541 -1.1e3
542 -1.01e3
543
544
545 t31: done