diff options
| -rw-r--r-- | tests/tmath.nim | 12 |
1 files changed, 12 insertions, 0 deletions
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 |
