[OCaml] Runtime tests for default_arg_values, inherit_missing and some others
Add runtime tests for default_arg_values, inherit_missing, memberin_extend, rename_predicates, template_inherit, template_tbase_template, and typedef_classforward_same_name.
This commit is contained in:
parent
ec72026285
commit
35e417a4db
7 changed files with 115 additions and 0 deletions
10
Examples/test-suite/ocaml/inherit_missing_runme.ml
Normal file
10
Examples/test-suite/ocaml/inherit_missing_runme.ml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
open Swig
|
||||
open Inherit_missing
|
||||
|
||||
let _ =
|
||||
let a = _new_Foo '() and b = new_Bar '() and c = new_Spam '() in
|
||||
assert (_do_blah '(a) as string = "Foo::blah");
|
||||
assert (_do_blah '(b) as string = "Bar::blah");
|
||||
assert (_do_blah '(c) as string = "Spam::blah");
|
||||
assert (_delete_Foo '(a) = C_void)
|
||||
;;
|
||||
Loading…
Add table
Add a link
Reference in a new issue