diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2016-11-17 00:33:45 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-11-17 00:55:39 +0100 |
commit | 44e6ee930fff5bf42178e5555b4a7c3467cb66c8 (patch) | |
tree | 158e48cdaa336c5837d4af455357d19fdb76f9de /test/unit/garray_spec.lua | |
parent | 5e241b5f50833afd920d37fa8b2bb24a30827406 (diff) | |
download | rneovim-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/garray_spec.lua')
-rw-r--r-- | test/unit/garray_spec.lua | 8 |
1 files changed, 4 insertions, 4 deletions
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) |