mirror of
https://github.com/carp-lang/Carp.git
synced 2024-11-12 12:49:13 +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"))
|