diff options
| author | Ganesh Viswanathan <dev@genotrance.com> | 2018-12-04 17:14:50 -0600 |
|---|---|---|
| committer | Ganesh Viswanathan <dev@genotrance.com> | 2018-12-04 17:14:50 -0600 |
| commit | cb1c7f28cbff8ac4e588266b8aa953a6f7f44563 (patch) | |
| tree | 9ccefc80322916aa39228e1494bbbdd4b2676ea5 /tests | |
| parent | 8d9bc5adbd9c3368295c7e7c920fb0c166f29c29 (diff) | |
| download | nimterop-cb1c7f28cbff8ac4e588266b8aa953a6f7f44563.tar.gz nimterop-cb1c7f28cbff8ac4e588266b8aa953a6f7f44563.zip | |
Add math test for Windows
Diffstat (limited to 'tests')
| -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 |
