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
569be18c
Commit
569be18c
authored
Apr 23, 2014
by
Julien Lopez
Browse files
[TESTS][LAMBDA] Add test identity_precise in union
parent
5f3d4fe4
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/lambda/src/main.ml
View file @
569be18c
...
...
@@ -161,6 +161,11 @@ let tests_eval = "CDuce runtime tests (Typed -> Lambda -> Value)" >:::
);
"union"
>::
(
fun
test_ctxt
->
assert_equal
~
msg
:
"Test CDuce.runtime.union.identity_precise failed"
~
printer
:
(
fun
x
->
x
)
"Abstraction((Int -> Int & X1 -> X1 where X1 = [ Char* ], Int -> Int &
X1 -> X1 where
X1 = [ Char* ]),{})"
(
run_test_eval
"fun _f f : ((Int -> Int) & (String -> String)) : ((Int -> Int) & (String -> String)) -> f"
);
assert_equal
~
msg
:
"Test CDuce.runtime.union.identity failed"
~
printer
:
(
fun
x
->
x
)
"Abstraction(([ Char* ] | Int, [ Char* ] | Int),{})"
(
run_test_eval
"fun f x : (Int | String) : (Int | String) -> x"
);
...
...
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