aboutsummaryrefslogtreecommitdiff
path: root/test/functional/legacy/function_sort_spec.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-04-26 11:35:05 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-04-26 11:38:58 +0800
commit519e4c44720be9b0c8584cb53a902bc1e5bfe3a3 (patch)
treec22f82a0c739a99729d3d07a2af228b31dacaf4e /test/functional/legacy/function_sort_spec.lua
parent5d159a7faad913852c65c81dcc976cf4be902fc1 (diff)
downloadrneovim-519e4c44720be9b0c8584cb53a902bc1e5bfe3a3.tar.gz
rneovim-519e4c44720be9b0c8584cb53a902bc1e5bfe3a3.tar.bz2
rneovim-519e4c44720be9b0c8584cb53a902bc1e5bfe3a3.zip
test: correct order of arguments to eq() and neq()
Diffstat (limited to 'test/functional/legacy/function_sort_spec.lua')
-rw-r--r--test/functional/legacy/function_sort_spec.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/legacy/function_sort_spec.lua b/test/functional/legacy/function_sort_spec.lua
index 12875460e0..414953aacc 100644
--- a/test/functional/legacy/function_sort_spec.lua
+++ b/test/functional/legacy/function_sort_spec.lua
@@ -52,6 +52,6 @@ describe('sort', function()
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)
+ neq(nil, exc_exec('call sort([3.3, 1, "2"], 3)'):find('E474:'))
end)
end)