mirror of
https://github.com/carp-lang/Carp.git
synced 2024-10-11 04:27:55 +03:00
21 lines
409 B
Plaintext
21 lines
409 B
Plaintext
(local-include "../test/fixture_foo.h")
|
|
(load "Test.carp")
|
|
(load "Vector.carp")
|
|
|
|
; this is a test-only module to test module resolution (see #288)
|
|
(defmodule Foo
|
|
(register init (Fn [] Int) "fooInit")
|
|
)
|
|
|
|
(use-all Test Vector2 Foo)
|
|
|
|
(defn main []
|
|
(with-test test
|
|
(assert-equal test
|
|
1
|
|
(init)
|
|
"test that the right module gets resolved"
|
|
)
|
|
)
|
|
)
|