aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorwatiko <service@mail.watiko.net>2016-02-20 17:45:51 +0900
committerwatiko <service@mail.watiko.net>2016-03-02 17:32:24 +0900
commit313810ccada3b5f3dad73d8c376652533636f46b (patch)
tree384396be13e65ee2565fe7aa255a49c1c2c49d05 /src/nvim/testdir
parentf6dca79f3aa2b55927a5f1cee4a6bf25d5c9bd37 (diff)
downloadrneovim-313810ccada3b5f3dad73d8c376652533636f46b.tar.gz
rneovim-313810ccada3b5f3dad73d8c376652533636f46b.tar.bz2
rneovim-313810ccada3b5f3dad73d8c376652533636f46b.zip
vim-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(). https://github.com/vim/vim/commit/f7edf40448a09e04eec3bd05e043f7fea93b07c9
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_sort.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_sort.vim b/src/nvim/testdir/test_sort.vim
index 30dd167cd6..32ad7f8ad5 100644
--- a/src/nvim/testdir/test_sort.vim
+++ b/src/nvim/testdir/test_sort.vim
@@ -17,3 +17,7 @@ func Test_sort_numbers()
call assert_equal([3, 13, 28], sort([13, 28, 3], 'N'))
call assert_equal(['3', '13', '28'], sort(['13', '28', '3'], 'N'))
endfunc
+
+func Test_sort_float()
+ call assert_equal([0.28, 3, 13.5], sort([13.5, 0.28, 3], 'f'))
+endfunc