diff options
author | Jurica Bradaric <jbradaric@gmail.com> | 2016-05-14 22:51:05 +0200 |
---|---|---|
committer | Jurica Bradaric <jbradaric@gmail.com> | 2016-06-09 20:34:43 +0200 |
commit | 6c550a4f13b7bb90221dbae655b7899a3b72fa72 (patch) | |
tree | 28cc2b41840bae13ff0888890141bad75cf535f0 /test/functional/legacy/function_sort_spec.lua | |
parent | b2d15fbebc1470057da3c814f0e1539b021da63e (diff) | |
download | rneovim-6c550a4f13b7bb90221dbae655b7899a3b72fa72.tar.gz rneovim-6c550a4f13b7bb90221dbae655b7899a3b72fa72.tar.bz2 rneovim-6c550a4f13b7bb90221dbae655b7899a3b72fa72.zip |
vim-patch:7.4.1468
Problem: Sort test doesn't test with "1" argument.
Solution: Also test ignore-case sorting. (Yasuhiro Matsumoto)
https://github.com/vim/vim/commit/51d1d536802b5d8232d47e56f165ba8a009529b5
Diffstat (limited to 'test/functional/legacy/function_sort_spec.lua')
-rw-r--r-- | test/functional/legacy/function_sort_spec.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/functional/legacy/function_sort_spec.lua b/test/functional/legacy/function_sort_spec.lua index fb4a5b7713..b274aee94b 100644 --- a/test/functional/legacy/function_sort_spec.lua +++ b/test/functional/legacy/function_sort_spec.lua @@ -44,9 +44,10 @@ describe('sort', function() it('default sort', function() -- docs say omitted, empty or zero argument sorts on string representation - eq({'2', 1, 3.3}, eval('sort([3.3, 1, "2"])')) - eq({'2', 1, 3.3}, eval([[sort([3.3, 1, "2"], '')]])) - eq({'2', 1, 3.3}, eval('sort([3.3, 1, "2"], 0)')) + eq({'2', 'A', 'AA', 'a', 1, 3.3}, eval('sort([3.3, 1, "2", "A", "a", "AA"])')) + eq({'2', 'A', 'AA', 'a', 1, 3.3}, eval([[sort([3.3, 1, "2", "A", "a", "AA"], '')]])) + eq({'2', 'A', 'AA', 'a', 1, 3.3}, eval('sort([3.3, 1, "2", "A", "a", "AA"], 0)')) + eq({'2', 'A', 'a', 'AA', 1, 3.3}, eval('sort([3.3, 1, "2", "A", "a", "AA"], 1)')) neq(exc_exec('call sort([3.3, 1, "2"], 3)'):find('E474:'), nil) end) end) |