From cb1c7f28cbff8ac4e588266b8aa953a6f7f44563 Mon Sep 17 00:00:00 2001 From: Ganesh Viswanathan Date: Tue, 4 Dec 2018 17:14:50 -0600 Subject: Add math test for Windows --- tests/tmath.nim | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/tmath.nim diff --git a/tests/tmath.nim b/tests/tmath.nim new file mode 100644 index 0000000..0479dda --- /dev/null +++ b/tests/tmath.nim @@ -0,0 +1,12 @@ +import nimterop/cimport +import unittest + +type + locale_t = object + +cAddStdDir() +cImport cSearchPath("math.h") + +check sin(5) == -0.9589242746631385 +check abs(-5) == 5 +check sqrt(4.00) == 2.0 \ No newline at end of file -- cgit v1.2.3