Add Racket test for %newobject
Uses common mzscheme test, but corrections for Racket error: if: bad syntax (must have an "else" expression)
This commit is contained in:
parent
748bad3db2
commit
c9f5a85e45
2 changed files with 6 additions and 1 deletions
5
Examples/test-suite/mzscheme/newobject1_runme.scm
Normal file
5
Examples/test-suite/mzscheme/newobject1_runme.scm
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
(load-extension "newobject1.so")
|
||||
|
||||
(require (lib "defmacro.ss"))
|
||||
|
||||
(load "../schemerunme/newobject1.scm")
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
(define-macro (check test)
|
||||
`(if (not ,test) (error "Error in test" ',test)))
|
||||
`(unless ,test (error "Error in test" ',test)))
|
||||
|
||||
(define foo1 (Foo-makeFoo))
|
||||
(check (= (Foo-fooCount) 1))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue