Add math test for Windows
This commit is contained in:
parent
8d9bc5adbd
commit
cb1c7f28cb
1 changed files with 12 additions and 0 deletions
12
tests/tmath.nim
Normal file
12
tests/tmath.nim
Normal 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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue