/tags/rel-1-3-25/SWIG/Examples/test-suite/schemerunme/overload_extend.scm
# · Lisp · 12 lines · 8 code · 4 blank · 0 comment · 0 complexity · 8d7a83c5179f49e2b8d3b488b7352624 MD5 · raw file
- (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)