aboutsummaryrefslogtreecommitdiff
path: root/test/unit/misc1.moon
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/misc1.moon')
-rw-r--r--test/unit/misc1.moon6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/misc1.moon b/test/unit/misc1.moon
index d67f867913..f408f3d5ec 100644
--- a/test/unit/misc1.moon
+++ b/test/unit/misc1.moon
@@ -1,4 +1,4 @@
-{:cimport, :internalize, :eq, :ffi, :lib, :cstr} = require 'test.unit.helpers'
+{:cimport, :internalize, :eq, :ffi, :lib, :cstr, :to_cstr} = require 'test.unit.helpers'
--misc1 = cimport './src/misc1.h'
@@ -18,8 +18,8 @@ describe 'misc1 function', ->
describe 'fullpathcmp', ->
fullpathcmp = (s1, s2, cn) ->
- s1 = cstr (string.len s1) + 1, s1
- s2 = cstr (string.len s2) + 1, s2
+ s1 = to_cstr s1
+ s2 = to_cstr s2
misc1.fullpathcmp s1, s2, cn or 0
f1 = 'f1.o'