[OCaml] Runtime tests for template_opaque, using_extend and some others

Add runtime tests for namespace_virtual_method, template_opaque,
using_extend, using_inherit, using_pointers, using_private, and
varargs_overload.
This commit is contained in:
Zackery Spytz 2019-01-27 06:50:51 -07:00
commit f78358d9aa
7 changed files with 80 additions and 0 deletions

View file

@ -0,0 +1,15 @@
open Swig
open Varargs_overload
let _ =
assert (_vararg_over1 '("Hello") as string = "Hello");
assert (_vararg_over1 '(2) as string = "2");
assert (_vararg_over2 '("Hello") as string = "Hello");
assert (_vararg_over2 '(2, 2.2) as string = "2 2.2");
assert (_vararg_over3 '("Hello") as string = "Hello");
assert (_vararg_over3 '(2, 2.2, "hey") as string = "2 2.2 hey");
assert (_vararg_over4 '("Hello") as string = "Hello");
assert (_vararg_over4 '(123) as string = "123");
assert (_vararg_over4 '("Hello", 123) as string = "Hello")
;;