Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cduce
cduce
Commits
2476363b
Commit
2476363b
authored
Feb 28, 2014
by
Julien Lopez
Browse files
Fix tests from previous commit.
parent
159079b3
Changes
5
Hide whitespace changes
Inline
Side-by-side
tests/ocaml/latypes/latypes.cd
0 → 100644
View file @
2476363b
let f = Latypes.f
tests/ocaml/latypes/latypes.ml
0 → 100644
View file @
2476363b
let
f
(
type
t
)
()
=
let
module
M
=
struct
exception
E
of
t
end
in
(
fun
x
->
M
.
E
x
)
,
(
function
M
.
E
x
->
Some
x
|
_
->
None
)
tests/ocaml/latypes/latypes.mli
0 → 100644
View file @
2476363b
val
f
:
unit
->
(
'
a
->
exn
)
*
(
exn
->
'
a
option
)
tests/ocaml/latypes/latypestest.ml
0 → 100644
View file @
2476363b
open
OUnit2
let
tests
=
"Latypes"
>:::
[
"f"
>::
(
fun
test_ctxt
->
assert_equal
~
msg
:
"Test Latypes.f.1 failed"
(
Some
2
)
Latypes
.
b
(
Latypes
.
a
2
);
);
]
let
_
=
run_test_tt_main
tests
tests/test.sh
View file @
2476363b
...
...
@@ -75,7 +75,7 @@ if test $EXTENDED = "true"; then
$OCAMLDIR
/cdsdl/cdsdl
ocamlc
-I
$OCAMLDIR
/latypes
-c
$OCAMLDIR
/latypes/latypes.mli
$ROOT
/../cduce
-I
$OCAMLDIR
/latypes
--compile
$OCAMLDIR
/latypes/latypes.cd
-I
`
ocamlfind query num
`
$ROOT
/../cduce
-I
$OCAMLDIR
/latypes
--compile
$OCAMLDIR
/latypes/latypes.cd
$ROOT
/../cduce
-I
$OCAMLDIR
/latypes
--mlstub
$OCAMLDIR
/latypes/latypes.cdo
>
$OCAMLDIR
/latypes/latypes2.ml
ocamlfind ocamlc
-I
$OCAMLDIR
/latypes
-package
cduce,num,oUnit
-linkpkg
-o
$OCAMLDIR
/latypes/latypes
$OCAMLDIR
/latypes/latypes.ml
$OCAMLDIR
/latypes/latypes2.ml
$OCAMLDIR
/latypes/latypestest.ml
$OCAMLDIR
/latypes/latypes
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment