Lots more bug fixes for the chicken module: almost the entire test-sutie now runs
The only tests that are failing are ones that depend on std_vector.i and similar git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7079 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
a28fc0f8c4
commit
897e5ad40d
17 changed files with 322 additions and 43 deletions
21
Examples/test-suite/schemerunme/cpp_enum.scm
Normal file
21
Examples/test-suite/schemerunme/cpp_enum.scm
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
(define f (new-Foo))
|
||||
|
||||
(if (not (= (Foo-hola-get f) (Foo-Hello)))
|
||||
(error "Error 1"))
|
||||
|
||||
(Foo-hola-set f (Foo-Hi))
|
||||
|
||||
(if (not (= (Foo-hola-get f) (Foo-Hi)))
|
||||
(error "Error 2"))
|
||||
|
||||
(Foo-hola-set f (Foo-Hello))
|
||||
|
||||
(if (not (= (Foo-hola-get f) (Foo-Hello)))
|
||||
(error "Error 3"))
|
||||
|
||||
(hi (Hello))
|
||||
|
||||
(if (not (= (hi) (Hello)))
|
||||
(error "Error 4"))
|
||||
|
||||
(exit 0)
|
||||
17
Examples/test-suite/schemerunme/li_std_string.scm
Normal file
17
Examples/test-suite/schemerunme/li_std_string.scm
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
(define x "hello")
|
||||
|
||||
(if (not (string=? (test-value x) x))
|
||||
(begin (error "Error 1") (exit 1)))
|
||||
|
||||
(if (not (string=? (test-const-reference x) x))
|
||||
(begin (error "Error 2") (exit 1)))
|
||||
|
||||
(define y (test-pointer-out))
|
||||
(test-pointer y)
|
||||
(define z (test-const-pointer-out))
|
||||
(test-const-pointer z)
|
||||
|
||||
(define a (test-reference-out))
|
||||
(test-reference a)
|
||||
|
||||
(exit 0)
|
||||
|
|
@ -13,12 +13,12 @@
|
|||
(if (not (char=? (value-char (var-char)) #\w))
|
||||
(begin (display "Runtime test 3 failed.\n") (exit 1)))
|
||||
|
||||
(var-unsigned-char (createref-unsigned-char #\nl))
|
||||
(if (not (char=? (value-unsigned-char (var-unsigned-char)) #\nl))
|
||||
(var-unsigned-char (createref-unsigned-char #\newline))
|
||||
(if (not (char=? (value-unsigned-char (var-unsigned-char)) #\newline))
|
||||
(begin (display "Runtime test 4 failed.\n") (exit 1)))
|
||||
|
||||
(var-signed-char (createref-signed-char #\nl))
|
||||
(if (not (char=? (value-signed-char (var-signed-char)) #\nl))
|
||||
(var-signed-char (createref-signed-char #\newline))
|
||||
(if (not (char=? (value-signed-char (var-signed-char)) #\newline))
|
||||
(begin (display "Runtime test 5 failed.\n") (exit 1)))
|
||||
|
||||
(var-unsigned-short (createref-unsigned-short 10))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue