1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
import nimterop/cimport import unittest type locale_t = object mingw_ldbl_type_t = object mingw_dbl_type_t = object cDebug() cAddStdDir() cImport cSearchPath("math.h") check sin(5) == -0.9589242746631385 check abs(-5) == 5 check sqrt(4.00) == 2.0