Carp/test/add-c.carp
2020-06-28 19:53:43 +02:00

10 lines
184 B
Plaintext

(load "Test.carp")
(use Test)
(add-c "csquare.c")
(relative-include "csquare.h")
(register csquare (Fn [Int] Int))
(deftest test
(assert-equal test (csquare 2) 4 "add-c works"))