From db15588cbc609c33b2ffa210f7c92899785e53ab Mon Sep 17 00:00:00 2001 From: Timothee Cour Date: Wed, 21 Nov 2018 16:27:22 -0800 Subject: always use assert=>doAssert for tests --- tests/tnimterop.nim | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/tnimterop.nim b/tests/tnimterop.nim index 77419ea..e61580b 100644 --- a/tests/tnimterop.nim +++ b/tests/tnimterop.nim @@ -7,9 +7,9 @@ cIncludeDir("include") cCompile("test.c") cImport("test.h") -assert TEST_INT == 512 -assert TEST_FLOAT == 5.12 -assert TEST_HEX == 0x512 +doAssert TEST_INT == 512 +doAssert TEST_FLOAT == 5.12 +doAssert TEST_HEX == 0x512 var pt: PRIMTYPE @@ -32,8 +32,8 @@ s3.field1 = 7 e = enum1 e2 = enum4 -assert test_call_int() == 5 -assert test_call_int_param(5).field1 == 5 -assert test_call_int_param2(5, s2).field1 == 11 -assert test_call_int_param3(5, s).field1 == 10 -assert test_call_int_param4(e) == e2 \ No newline at end of file +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 \ No newline at end of file -- cgit v1.2.3 From 6b68a71069830256501cf059f9558fbe2ecd777f Mon Sep 17 00:00:00 2001 From: Timothee Cour Date: Wed, 21 Nov 2018 16:34:29 -0800 Subject: fixup --- tests/tnimterop.nim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/tnimterop.nim b/tests/tnimterop.nim index e61580b..9c5db77 100644 --- a/tests/tnimterop.nim +++ b/tests/tnimterop.nim @@ -1,5 +1,4 @@ import nimterop/cimport -import macros cDebug() @@ -36,4 +35,4 @@ 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 \ No newline at end of file +doAssert test_call_int_param4(e) == e2 -- cgit v1.2.3