summaryrefslogtreecommitdiff
path: root/tests/test_checking.rs
diff options
context:
space:
mode:
authorJJ2023-04-13 01:30:35 +0000
committerJJ2023-04-13 01:30:35 +0000
commit56f47bb2e5816de7630569a8825914d0620983cc (patch)
treecf413d589a389d3ddd8f9a9321aed7cb7d30c215 /tests/test_checking.rs
parentfb1c4cd2b8e2efe4b03e8c93f2a69d712a96aff7 (diff)
subtyping wip
Diffstat (limited to 'tests/test_checking.rs')
-rw-r--r--tests/test_checking.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_checking.rs b/tests/test_checking.rs
index 0ec6acd..60bb6da 100644
--- a/tests/test_checking.rs
+++ b/tests/test_checking.rs
@@ -51,8 +51,8 @@ fn test_checking() {
assert!(check(Context::new(), parse_lambda(basic_application).unwrap(), Int).is_ok());
assert!(check(Context::new(), parse_lambda(correct_cond_abs).unwrap(), Func(Bool, Int)).is_ok());
assert!(check(Context::new(), parse_lambda(correct_cond).unwrap(), Nat).is_ok());
- assert!(check(Context::new(), parse_lambda(incorrect_branches).unwrap(), Empty).is_err());
- assert!(check(Context::new(), parse_lambda(incorrect_cond_abs).unwrap(), Empty).is_err());
+ assert!(check(Context::new(), parse_lambda(incorrect_branches).unwrap(), Unit).is_err());
+ assert!(check(Context::new(), parse_lambda(incorrect_cond_abs).unwrap(), Error).is_err());
// more fun
assert_eq!(check(Context::new(), parse_lambda(not_inferrable).unwrap(), Func(Bool, Func(Int, Func(Int, Int)))), Ok(()));