[OCaml] Runtime tests for fvirtual, overload_polymorphic and some others
Add runtime tests for conversion, extend_typedef_class, extend_constructor_destructor, fvirtual, overload_polymorphic, template_rename, and using1.
This commit is contained in:
parent
00fbf09137
commit
f71ee5be67
7 changed files with 68 additions and 0 deletions
9
Examples/test-suite/ocaml/conversion_runme.ml
Normal file
9
Examples/test-suite/ocaml/conversion_runme.ml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
open Swig
|
||||
open Conversion
|
||||
|
||||
let _ =
|
||||
let bar = new_Bar '() in
|
||||
assert (bar -> ":classof" () as string = "Bar");
|
||||
let foo = bar -> toFoo () in
|
||||
assert (foo -> ":classof" () as string = "Foo");
|
||||
;;
|
||||
Loading…
Add table
Add a link
Reference in a new issue