19 lines
354 B
Nim
19 lines
354 B
Nim
import unittest
|
|
import nimterop/cimport
|
|
import nimterop/paths
|
|
|
|
static:
|
|
cDisableCaching()
|
|
cAddSearchDir testsIncludeDir()
|
|
|
|
cIncludeDir testsIncludeDir()
|
|
cCompile cSearchPath "test2.cpp"
|
|
cImport cSearchPath "test2.hpp"
|
|
|
|
check TEST_INT == 512
|
|
check TEST_FLOAT == 5.12
|
|
check TEST_HEX == 0x512
|
|
check test_call_int() == 5
|
|
|
|
var foo: Foo
|
|
check foo.bar == 0
|