mirror of
https://github.com/carp-lang/Carp.git
synced 2024-09-11 05:25:28 +03:00
10 lines
184 B
Plaintext
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"))
|