aboutsummaryrefslogtreecommitdiff
path: root/test/unit/helpers.moon
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/helpers.moon')
-rw-r--r--test/unit/helpers.moon5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/unit/helpers.moon b/test/unit/helpers.moon
index b1670d01ea..d41a7465d6 100644
--- a/test/unit/helpers.moon
+++ b/test/unit/helpers.moon
@@ -22,6 +22,9 @@ cimport = (path) ->
return libnvim
+cppimport = (path) ->
+ return cimport './test/includes/post/' .. path
+
cimport './src/types.h'
-- take a pointer to a C-allocated string and return an interned
@@ -37,8 +40,10 @@ to_cstr = (string) ->
return {
cimport: cimport
+ cppimport: cppimport
internalize: internalize
eq: (expected, actual) -> assert.are.same expected, actual
+ neq: (expected, actual) -> assert.are_not.same expected, actual
ffi: ffi
lib: libnvim
cstr: cstr