diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2016-06-11 12:36:44 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-11 12:36:44 -0400 |
commit | 871fc6c1e17bc1fc1b3a937ff481aca1f0aeff43 (patch) | |
tree | 9770dc1596fb624b323b127917c5d6ac789961f9 /test/unit/helpers.lua | |
parent | f0c1a06792586d8373639ad2e9d34de6594cece3 (diff) | |
parent | 6881fcd203a0df156557934caf532cc9baa6aa93 (diff) | |
download | rneovim-871fc6c1e17bc1fc1b3a937ff481aca1f0aeff43.tar.gz rneovim-871fc6c1e17bc1fc1b3a937ff481aca1f0aeff43.tar.bz2 rneovim-871fc6c1e17bc1fc1b3a937ff481aca1f0aeff43.zip |
Merge #4839 from ZyX-I/luaviml'/lua'/encode_vim_to_object'/functests
Check sanitizer results right after the test
Diffstat (limited to 'test/unit/helpers.lua')
-rw-r--r-- | test/unit/helpers.lua | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/test/unit/helpers.lua b/test/unit/helpers.lua index 426ae2d9e0..f0c193884e 100644 --- a/test/unit/helpers.lua +++ b/test/unit/helpers.lua @@ -1,9 +1,12 @@ -local assert = require('luassert') local ffi = require('ffi') local formatc = require('test.unit.formatc') local Set = require('test.unit.set') local Preprocess = require('test.unit.preprocess') local Paths = require('test.config.paths') +local global_helpers = require('test.helpers') + +local neq = global_helpers.neq +local eq = global_helpers.eq -- add some standard header locations for _, p in ipairs(Paths.include_paths) do @@ -153,12 +156,8 @@ return { cimport = cimport, cppimport = cppimport, internalize = internalize, - eq = function(expected, actual) - return assert.are.same(expected, actual) - end, - neq = function(expected, actual) - return assert.are_not.same(expected, actual) - end, + eq = eq, + neq = neq, ffi = ffi, lib = libnvim, cstr = cstr, |