projects
/
profile
/
ivi
/
swig.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Upstream version 1.3.40
[profile/ivi/swig.git]
/
Examples
/
test-suite
/
schemerunme
/
overload_extend.scm
1
(define f (new-Foo))
2
3
(if (not (= (Foo-test f 3) 1))
4
(error "test integer bad"))
5
6
(if (not (= (Foo-test f "hello") 2))
7
(error "test string bad"))
8
9
(if (not (= (Foo-test f 3.5 2.5) 6.0))
10
(error "test reals bad"))
11
12
(exit 0)