diff options
Diffstat (limited to 'Examples/test-suite/ocaml/sneaky1_runme.ml')
| -rw-r--r-- | Examples/test-suite/ocaml/sneaky1_runme.ml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Examples/test-suite/ocaml/sneaky1_runme.ml b/Examples/test-suite/ocaml/sneaky1_runme.ml new file mode 100644 index 0000000..81b69f3 --- /dev/null +++ b/Examples/test-suite/ocaml/sneaky1_runme.ml @@ -0,0 +1,9 @@ +(* Stolen from ruby test cases *) + +open Swig +open Sneaky1 + +let x = Sneaky1._add (C_list [ C_int 3; C_int 4 ]) +let y = Sneaky1._subtract (C_list [ C_int 3; C_int 4 ]) +let z = Sneaky1._mul (C_list [ C_int 3; C_int 4 ]) +let w = Sneaky1._divide (C_list [ C_int 3; C_int 4 ]) |
