[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:
Zackery Spytz 2019-01-20 23:08:03 -07:00
commit 8b083b4284
7 changed files with 66 additions and 0 deletions

View 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)
;;