Add a whole bunch of chicken runme scripts, and fix the bugs exposed by those scripts

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7155 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
John Lenz 2005-04-15 05:23:14 +00:00
commit b599732cdc
72 changed files with 1085 additions and 412 deletions

View file

@ -0,0 +1,15 @@
(define-macro (check test)
`(if (not ,test) (error "Error in test" ',test)))
(define b (make <Bar>))
(check (= (bar b) 1))
(define f (make <Foo>))
(check (= (foo f) 2))
(define fb (make <FooBar>))
(check (= (bar fb) 1))
(check (= (foo fb) 2))
(check (= (fooBar fb) 3))
(exit 0)