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:
William S Fulton 2022-08-17 08:16:47 +01:00
commit c9f5a85e45
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
(load-extension "newobject1.so")
(require (lib "defmacro.ss"))
(load "../schemerunme/newobject1.scm")

View file

@ -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))