aboutsummaryrefslogtreecommitdiff
path: root/test/unit
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-11-17 00:33:45 +0100
committerJustin M. Keyes <justinkz@gmail.com>2016-11-17 00:55:39 +0100
commit44e6ee930fff5bf42178e5555b4a7c3467cb66c8 (patch)
tree158e48cdaa336c5837d4af455357d19fdb76f9de /test/unit
parent5e241b5f50833afd920d37fa8b2bb24a30827406 (diff)
downloadrneovim-44e6ee930fff5bf42178e5555b4a7c3467cb66c8.tar.gz
rneovim-44e6ee930fff5bf42178e5555b4a7c3467cb66c8.tar.bz2
rneovim-44e6ee930fff5bf42178e5555b4a7c3467cb66c8.zip
build: Target luacheck HEAD.
https://github.com/mpeterv/luacheck/pull/81#issuecomment-261099606 > If you really want to use bleeding-edge version you should get the > rockspec from master branch, not a fixed commit ... > The correct way to install from a specific commit is cloning that > commit and running "luarocks make" from project directory. The reason > is that running "install" or "build" on an scm rockspec fetches > sources from master but uses build description from the rockspec > itself, which may be outdated.
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/eval/decode_spec.lua2
-rw-r--r--test/unit/garray_spec.lua8
-rw-r--r--test/unit/os/fs_spec.lua4
-rw-r--r--test/unit/strings_spec.lua4
4 files changed, 9 insertions, 9 deletions
diff --git a/test/unit/eval/decode_spec.lua b/test/unit/eval/decode_spec.lua
index d94d809c14..742b754d8a 100644
--- a/test/unit/eval/decode_spec.lua
+++ b/test/unit/eval/decode_spec.lua
@@ -32,7 +32,7 @@ describe('json_decode_string()', function()
it('does not overflow when running with `n…`, `t…`, `f…`', function()
local rettv = ffi.new('typval_T', {v_type=decode.VAR_UNKNOWN})
decode.emsg_silent = 1
- -- This will not crash, but if `len` argument will be ignored it will parse
+ -- This will not crash, but if `len` argument will be ignored it will parse
-- `null` as `null` and if not it will parse `null` as `n`.
eq(0, decode.json_decode_string('null', 1, rettv))
eq(decode.VAR_UNKNOWN, rettv.v_type)
diff --git a/test/unit/garray_spec.lua b/test/unit/garray_spec.lua
index 9694e3c427..422ef7b36a 100644
--- a/test/unit/garray_spec.lua
+++ b/test/unit/garray_spec.lua
@@ -198,8 +198,8 @@ describe('garray', function()
local function new_and_grow(itemsize_, growsize_, req)
local garr = new_garray()
ga_init(garr, itemsize_, growsize_)
- eq(0, ga_size(garr)) -- should be 0 at first
- eq(NULL, ga_data(garr)) -- should be NULL
+ eq(0, ga_size(garr)) -- should be 0 at first
+ eq(NULL, ga_data(garr)) -- should be NULL
ga_grow(garr, req) -- add space for `req` items
return garr
end
@@ -209,7 +209,7 @@ describe('garray', function()
growsize = 4
local grow_by = growsize - 1
local garr = new_and_grow(itemsize, growsize, grow_by)
- neq(NULL, ga_data(garr)) -- data should be a ptr to memory
+ neq(NULL, ga_data(garr)) -- data should be a ptr to memory
eq(growsize, ga_maxlen(garr)) -- we requested LESS than growsize, so...
end)
@@ -218,7 +218,7 @@ describe('garray', function()
growsize = 4
local grow_by = growsize + 1
local garr = new_and_grow(itemsize, growsize, grow_by)
- neq(NULL, ga_data(garr)) -- data should be a ptr to memory
+ neq(NULL, ga_data(garr)) -- data should be a ptr to memory
eq(grow_by, ga_maxlen(garr)) -- we requested MORE than growsize, so...
end)
diff --git a/test/unit/os/fs_spec.lua b/test/unit/os/fs_spec.lua
index 7e7eddb6fc..5d889d6e33 100644
--- a/test/unit/os/fs_spec.lua
+++ b/test/unit/os/fs_spec.lua
@@ -206,8 +206,8 @@ describe('fs function', function()
lfs.chdir(directory)
- -- Rely on currentdir to resolve symlinks, if any. Testing against
- -- the absolute path taken from arg[0] may result in failure where
+ -- Rely on currentdir to resolve symlinks, if any. Testing against
+ -- the absolute path taken from arg[0] may result in failure where
-- the path has a symlink in it.
local canonical = lfs.currentdir() .. '/' .. executable_name
local expected = exe(canonical)
diff --git a/test/unit/strings_spec.lua b/test/unit/strings_spec.lua
index 0034670ee8..072701ea78 100644
--- a/test/unit/strings_spec.lua
+++ b/test/unit/strings_spec.lua
@@ -13,7 +13,7 @@ describe('vim_strsave_escaped()', function()
local res = strings.vim_strsave_escaped(to_cstr(s), to_cstr(chars))
local ret = ffi.string(res)
- -- Explicitly free memory so we are sure it is allocated: if it was not it
+ -- Explicitly free memory so we are sure it is allocated: if it was not it
-- will crash.
strings.xfree(res)
return ret
@@ -44,7 +44,7 @@ describe('vim_strnsave_unquoted()', function()
local vim_strnsave_unquoted = function(s, len)
local res = strings.vim_strnsave_unquoted(to_cstr(s), len or #s)
local ret = ffi.string(res)
- -- Explicitly free memory so we are sure it is allocated: if it was not it
+ -- Explicitly free memory so we are sure it is allocated: if it was not it
-- will crash.
strings.xfree(res)
return ret