diff options
| author | Timothee Cour <timothee.cour2@gmail.com> | 2018-11-27 18:27:59 -0500 |
|---|---|---|
| committer | Timothee Cour <timothee.cour2@gmail.com> | 2018-11-27 18:28:14 -0500 |
| commit | c1ea14c0d3c80e401aabeb2d99431d41c4347fe1 (patch) | |
| tree | deb7378460ccf5b2802ed790fccee92fdec49dc2 /tests | |
| parent | 6a4158dab4ee36214678a92a1e5605a00402f01c (diff) | |
| download | nimterop-c1ea14c0d3c80e401aabeb2d99431d41c4347fe1.tar.gz nimterop-c1ea14c0d3c80e401aabeb2d99431d41c4347fe1.zip | |
doAssert => check
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/tnimterop_c.nim | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/tests/tnimterop_c.nim b/tests/tnimterop_c.nim index 1f2aaab..eff7039 100644 --- a/tests/tnimterop_c.nim +++ b/tests/tnimterop_c.nim @@ -1,3 +1,4 @@ +import std/unittest import nimterop/cimport cDebug() @@ -8,9 +9,9 @@ cAddSearchDir "$projpath/include" cCompile cSearchPath("test.c") cImport cSearchPath "test.h" -doAssert TEST_INT == 512 -doAssert TEST_FLOAT == 5.12 -doAssert TEST_HEX == 0x512 +check TEST_INT == 512 +check TEST_FLOAT == 5.12 +check TEST_HEX == 0x512 var pt: PRIMTYPE @@ -37,10 +38,10 @@ s3.field1 = 7 e = enum1 e2 = enum4 -doAssert test_call_int() == 5 -doAssert test_call_int_param(5).field1 == 5 -doAssert test_call_int_param2(5, s2).field1 == 11 -doAssert test_call_int_param3(5, s).field1 == 10 -doAssert test_call_int_param4(e) == e2 +check test_call_int() == 5 +check test_call_int_param(5).field1 == 5 +check test_call_int_param2(5, s2).field1 == 11 +check test_call_int_param3(5, s).field1 == 10 +check test_call_int_param4(e) == e2 cAddStdDir() |
