Introduce nvim namespace: Fix unit tests.

Point cimports to new locations.
This commit is contained in:
Eliseo Martínez 2014-05-12 15:54:04 +02:00
parent 762a8ad0f3
commit 74b9396043
6 changed files with 6 additions and 6 deletions

View File

@ -1,6 +1,6 @@
{:cimport, :internalize, :eq, :neq, :ffi, :lib, :cstr, :to_cstr} = require 'test.unit.helpers' {:cimport, :internalize, :eq, :neq, :ffi, :lib, :cstr, :to_cstr} = require 'test.unit.helpers'
garray = cimport './src/garray.h' garray = cimport './src/nvim/garray.h'
-- handy constants -- handy constants
NULL = ffi.cast 'void*', 0 NULL = ffi.cast 'void*', 0

View File

@ -84,7 +84,7 @@ cimport = (...) ->
cppimport = (path) -> cppimport = (path) ->
return cimport Paths.test_include_path .. '/' .. path return cimport Paths.test_include_path .. '/' .. path
cimport './src/types.h' cimport './src/nvim/types.h'
-- take a pointer to a C-allocated string and return an interned -- take a pointer to a C-allocated string and return an interned
-- version while also freeing the memory -- version while also freeing the memory

View File

@ -1,7 +1,7 @@
{:cimport, :internalize, :eq, :ffi, :lib, :cstr, :to_cstr} = require 'test.unit.helpers' {:cimport, :internalize, :eq, :ffi, :lib, :cstr, :to_cstr} = require 'test.unit.helpers'
require 'lfs' require 'lfs'
env = cimport './src/os/os.h' env = cimport './src/nvim/os/os.h'
NULL = ffi.cast 'void*', 0 NULL = ffi.cast 'void*', 0

View File

@ -2,7 +2,7 @@
require 'lfs' require 'lfs'
require 'bit' require 'bit'
fs = cimport './src/os/os.h' fs = cimport './src/nvim/os/os.h'
-- TODO(aktau): define these constants "better" -- TODO(aktau): define these constants "better"
FAIL = 0 FAIL = 0

View File

@ -1,6 +1,6 @@
{:cimport, :internalize, :eq, :ffi, :lib, :cstr} = require 'test.unit.helpers' {:cimport, :internalize, :eq, :ffi, :lib, :cstr} = require 'test.unit.helpers'
users = cimport './src/os/os.h', 'unistd.h' users = cimport './src/nvim/os/os.h', 'unistd.h'
NULL = ffi.cast 'void*', 0 NULL = ffi.cast 'void*', 0
OK = 1 OK = 1

View File

@ -1,7 +1,7 @@
{:cimport, :internalize, :eq, :neq, :ffi, :lib, :cstr, :to_cstr} = require 'test.unit.helpers' {:cimport, :internalize, :eq, :neq, :ffi, :lib, :cstr, :to_cstr} = require 'test.unit.helpers'
require 'lfs' require 'lfs'
path = cimport './src/path.h' path = cimport './src/nvim/path.h'
-- import constants parsed by ffi -- import constants parsed by ffi
{:kEqualFiles, :kDifferentFiles, :kBothFilesMissing, :kOneFileMissing, :kEqualFileNames} = path {:kEqualFiles, :kDifferentFiles, :kBothFilesMissing, :kOneFileMissing, :kEqualFileNames} = path