[OCaml] Runtime tests for overload_method, typedef_class and some others
Add runtime tests for overload_method, typedef_class, typedef_inherit, typemap_arrays, typemap_delete, types_directive, and valuewrapper.
This commit is contained in:
parent
5c21de71c7
commit
8b083b4284
7 changed files with 66 additions and 0 deletions
8
Examples/test-suite/ocaml/valuewrapper_runme.ml
Normal file
8
Examples/test-suite/ocaml/valuewrapper_runme.ml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
open Swig
|
||||
open Valuewrapper
|
||||
|
||||
let _ =
|
||||
let x1 = new_Xi '(5) and y1 = new_YXi '() in
|
||||
assert (y1 -> spam (x1) as int = 0);
|
||||
assert (y1 -> spam () as int = 0)
|
||||
;;
|
||||
Loading…
Add table
Add a link
Reference in a new issue