diff options
author | ZyX <kp-pav@yandex.ru> | 2016-04-24 02:53:11 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2016-06-10 21:50:49 +0300 |
commit | ff470bb853397fcb25bfa5dd952ebb32307b7875 (patch) | |
tree | f2afc180ec872c0ed186a402b332de941cdaf53c /test/unit/helpers.lua | |
parent | a160590e40342f013b7da45d2ab0e1c6ed636d35 (diff) | |
download | rneovim-ff470bb853397fcb25bfa5dd952ebb32307b7875.tar.gz rneovim-ff470bb853397fcb25bfa5dd952ebb32307b7875.tar.bz2 rneovim-ff470bb853397fcb25bfa5dd952ebb32307b7875.zip |
functests: Check logs in lua code
It is otherwise impossible to determine which test failed sanitizer/valgrind
check. test/functional/helpers.lua module return was changed so that tests which
do not provide after_each function to get new check will automatically fail.
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, |