aboutsummaryrefslogtreecommitdiff
path: root/test/functional/api/proc_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2024-01-03 02:09:18 +0100
committerJustin M. Keyes <justinkz@gmail.com>2024-01-03 02:09:29 +0100
commit04f2f864e270e772c6326cefdf24947f0130e492 (patch)
tree46f83f909b888a66c741032ab955afc6eab84292 /test/functional/api/proc_spec.lua
parent59d117ec99b6037cb9fad5bbfb6d0b18f5012927 (diff)
downloadrneovim-04f2f864e270e772c6326cefdf24947f0130e492.tar.gz
rneovim-04f2f864e270e772c6326cefdf24947f0130e492.tar.bz2
rneovim-04f2f864e270e772c6326cefdf24947f0130e492.zip
refactor: format test/*
Diffstat (limited to 'test/functional/api/proc_spec.lua')
-rw-r--r--test/functional/api/proc_spec.lua20
1 files changed, 10 insertions, 10 deletions
diff --git a/test/functional/api/proc_spec.lua b/test/functional/api/proc_spec.lua
index 20edea3feb..4f99a69ce6 100644
--- a/test/functional/api/proc_spec.lua
+++ b/test/functional/api/proc_spec.lua
@@ -43,16 +43,16 @@ describe('API', function()
end)
it('validation', function()
- local status, rv = pcall(request, "nvim_get_proc_children", -1)
+ local status, rv = pcall(request, 'nvim_get_proc_children', -1)
eq(false, status)
- eq("Invalid 'pid': -1", string.match(rv, "Invalid.*"))
+ eq("Invalid 'pid': -1", string.match(rv, 'Invalid.*'))
- status, rv = pcall(request, "nvim_get_proc_children", 0)
+ status, rv = pcall(request, 'nvim_get_proc_children', 0)
eq(false, status)
- eq("Invalid 'pid': 0", string.match(rv, "Invalid.*"))
+ eq("Invalid 'pid': 0", string.match(rv, 'Invalid.*'))
-- Assume PID 99999 does not exist.
- status, rv = pcall(request, "nvim_get_proc_children", 99999)
+ status, rv = pcall(request, 'nvim_get_proc_children', 99999)
eq(true, status)
eq({}, rv)
end)
@@ -69,16 +69,16 @@ describe('API', function()
end)
it('validation', function()
- local status, rv = pcall(request, "nvim_get_proc", -1)
+ local status, rv = pcall(request, 'nvim_get_proc', -1)
eq(false, status)
- eq("Invalid 'pid': -1", string.match(rv, "Invalid.*"))
+ eq("Invalid 'pid': -1", string.match(rv, 'Invalid.*'))
- status, rv = pcall(request, "nvim_get_proc", 0)
+ status, rv = pcall(request, 'nvim_get_proc', 0)
eq(false, status)
- eq("Invalid 'pid': 0", string.match(rv, "Invalid.*"))
+ eq("Invalid 'pid': 0", string.match(rv, 'Invalid.*'))
-- Assume PID 99999 does not exist.
- status, rv = pcall(request, "nvim_get_proc", 99999)
+ status, rv = pcall(request, 'nvim_get_proc', 99999)
eq(true, status)
eq(NIL, rv)
end)