Files
cpp-thirdparty/winx64/bin/swig-3.0.12/Examples/test-suite/schemerunme/overload_extend.scm
Bassem Girgis 81b4b9e273 Initial commit
2018-12-20 17:34:07 -06:00

13 lines
234 B
Scheme

(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) 6.0))
(error "test reals bad"))
(exit 0)