[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:
parent
7118e4ef1e
commit
f78358d9aa
7 changed files with 80 additions and 0 deletions
10
Examples/test-suite/ocaml/using_private_runme.ml
Normal file
10
Examples/test-suite/ocaml/using_private_runme.ml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
open Swig
|
||||
open Using_private
|
||||
|
||||
let _ =
|
||||
let f = new_FooBar '() in
|
||||
let _ = f -> "[x]" (3) in
|
||||
assert (f -> blah (4) as int = 4);
|
||||
assert (f -> defaulted () as int = -1);
|
||||
assert (f -> defaulted (222) as int = 222)
|
||||
;;
|
||||
Loading…
Add table
Add a link
Reference in a new issue