Add math test for Windows

This commit is contained in:
Ganesh Viswanathan 2018-12-04 17:14:50 -06:00
commit cb1c7f28cb

12
tests/tmath.nim Normal file
View file

@ -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