swig/Examples/test-suite/ocaml/overload_method_runme.ml
Zackery Spytz 8b083b4284 [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.
2019-01-20 23:08:03 -07:00

11 lines
303 B
OCaml

open Swig
open Overload_method
let _ =
let b = new_Base '() in
assert (b -> "method" () as int = 42);
assert (b -> "overloaded_method" () as int = 42);
assert (b -> "overloaded_method" (5) = C_void);
assert (b -> "overloaded_method" () as int = 5);
assert (b -> "method" () as int = 5);
;;