[OCaml] Runtime tests for constructor_rename, cpp_nodefault and some others
Add runtime tests for constructor_rename, cpp_nodefault, extend, extend_special_variables, extend_template, extern_c, and global_ns_arg.
This commit is contained in:
parent
b82d3007f3
commit
5b6c57e6ae
7 changed files with 80 additions and 0 deletions
8
Examples/test-suite/ocaml/extend_template_runme.ml
Normal file
8
Examples/test-suite/ocaml/extend_template_runme.ml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
open Swig
|
||||
open Extend_template
|
||||
|
||||
let f = new_Foo_0 '()
|
||||
let _ =
|
||||
assert((f -> "test1" (37) as int) = 37);
|
||||
assert((f -> "test2" (42) as int) = 42);
|
||||
;;
|
||||
Loading…
Add table
Add a link
Reference in a new issue