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
9108a643
Commit
9108a643
authored
Jun 12, 2014
by
Julien Lopez
Browse files
Fix tallyingTests and switch to OUnit2
parent
34a448ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/libtest/tallyingTest.ml
View file @
9108a643
(* TODO: Switch to OUnit2 when tests are fixed, then use tools/install_hooks.sh -d to check tallying before a commit *)
open
OUnit
(*2*)
open
OUnit2
open
Types
let
parse_typ
s
=
...
...
@@ -201,7 +200,7 @@ let norm_tests () = [
];
"(`$A -> `$B) -> [ `$A ] -> [ `$B ]"
,
"((Int -> Bool) | ((`$A
\\
Int) -> (`$B
\\
Int))) -> `$Gamma"
,
mk_s
[
[
P
(
V
"A"
,
"Empty"
)]
[
P
(
V
"A"
,
"Empty"
)
;
N
(
"[`$A] -> [`$B]"
,
V
"Gamma"
)
]
];
"Int -> Bool"
,
"`$A"
,
mk_s
[[
N
(
"Int -> Bool"
,
V
"A"
)]];
...
...
@@ -490,7 +489,7 @@ let suite =
]
let
main
()
=
OUnit
(*2*)
.
run_test_tt_main
suite
OUnit
2
.
run_test_tt_main
suite
;;
main
()
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