Added some tests to mimic the ones in the python directory. Working my
way through the alphabet. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4519 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
4292b470bb
commit
448c3c62ab
4 changed files with 24 additions and 180 deletions
10
Examples/test-suite/ocaml/varargs_runme.ml
Normal file
10
Examples/test-suite/ocaml/varargs_runme.ml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
(* Test case stolen from the python directory *)
|
||||
|
||||
open Varargs
|
||||
|
||||
let _ = if _test (C_string "Hello") <> (C_string "Hello") then
|
||||
raise (Failure "1")
|
||||
|
||||
let f = new_Foo C_void
|
||||
let _ = if (invoke f) "test" (C_string "Hello") <> (C_string "Hello") then
|
||||
raise (Failure "2")
|
||||
Loading…
Add table
Add a link
Reference in a new issue