aboutsummaryrefslogtreecommitdiff
path: root/test/old/testdir/test_sort.vim
diff options
context:
space:
mode:
Diffstat (limited to 'test/old/testdir/test_sort.vim')
-rw-r--r--test/old/testdir/test_sort.vim28
1 files changed, 28 insertions, 0 deletions
diff --git a/test/old/testdir/test_sort.vim b/test/old/testdir/test_sort.vim
index 94a35e3cb5..dafa3f618f 100644
--- a/test/old/testdir/test_sort.vim
+++ b/test/old/testdir/test_sort.vim
@@ -1336,6 +1336,34 @@ func Test_sort_cmd()
\ ]
endif
endif
+ if has('float')
+ let tests += [
+ \ {
+ \ 'name' : 'float',
+ \ 'cmd' : 'sort f',
+ \ 'input' : [
+ \ '1.234',
+ \ '0.88',
+ \ ' + 123.456',
+ \ '1.15e-6',
+ \ '-1.1e3',
+ \ '-1.01e3',
+ \ '',
+ \ ''
+ \ ],
+ \ 'expected' : [
+ \ '',
+ \ '',
+ \ '-1.1e3',
+ \ '-1.01e3',
+ \ '1.15e-6',
+ \ '0.88',
+ \ '1.234',
+ \ ' + 123.456'
+ \ ]
+ \ },
+ \ ]
+ endif
for t in tests
enew!