[OCaml] Runtime tests for abstract_access, abstract_typedef and some others
Add runtime tests for abstract_access, abstract_typedef, abstract_typedef2, abstract_virtual, aggregate, cast_operator, and constover. The aggregate and cast_operator tests are based on the corresponding ruby tests, and the rest are based on python tests.
This commit is contained in:
parent
bbad9eab8c
commit
e5b470327b
7 changed files with 56 additions and 0 deletions
5
Examples/test-suite/ocaml/cast_operator_runme.ml
Normal file
5
Examples/test-suite/ocaml/cast_operator_runme.ml
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
open Swig
|
||||
open Cast_operator
|
||||
|
||||
let a = new_A '()
|
||||
let _ = assert ((a -> "tochar" () as string) = "hi")
|
||||
Loading…
Add table
Add a link
Reference in a new issue