swig/SWIG/Examples/test-suite/guile/overload_extend_runme.scm
Matthias Köppe 109a4b230e John Lenz wrote:
I have recently been working on the guile module (as
discussed before....) and to help test it I have added
a bunch of _runme.scm files to the guile test-suite.
Mostly I just copied the python tests. What I mean is
the guile tests call exactly the same functions as the
_runme.py files.

Also a couple of tests (name_runme.scm,
list_vector_runme.scm, and char_constant_runme.scm)
were not calling the correct initilization function, so
I fixed those too.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4193 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2002-12-12 15:58:53 +00:00

14 lines
323 B
Scheme

(dynamic-call "scm_init_overload_extend_module" (dynamic-link "./liboverload_extend.so"))
(define f (new-Foo))
(if (not (= (Foo-test f 3) 1))
(error "test integer bad"))
(if (not (= (Foo-test f "hello") 2))
(error "test string bad"))
(if (not (= (Foo-test f 3.5 2.5) 3))
(error "test reals bad"))
(exit 0)