[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/overload_polymorphic_runme.ml
Normal file
9
Examples/test-suite/ocaml/overload_polymorphic_runme.ml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
open Swig
|
||||
open Overload_polymorphic
|
||||
|
||||
let _ =
|
||||
let t = new_Derived '() in
|
||||
assert (_test (t) as int = 0);
|
||||
assert (_test '(1) as int = 1);
|
||||
assert (_test2 (t) as int = 1)
|
||||
;;
|
||||
Loading…
Add table
Add a link
Reference in a new issue