Files
cpp-thirdparty/winx64/bin/swig-3.0.12/Examples/test-suite/schemerunme/cpp_enum.scm
Bassem Girgis 81b4b9e273 Initial commit
2018-12-20 17:34:07 -06:00

22 lines
343 B
Scheme

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