Fix can and load tests

This commit is contained in:
Ayaz Hafiz 2022-05-10 16:19:40 -04:00
parent 710a10a29c
commit c708c1ba07
No known key found for this signature in database
GPG Key ID: 0E2A37416A25EF58
2 changed files with 3 additions and 2 deletions

View File

@ -658,7 +658,7 @@ mod test_can {
// TAIL CALLS
fn get_closure(expr: &Expr, i: usize) -> roc_can::expr::Recursive {
match expr {
LetRec(assignments, body) => match &assignments.get(i).map(|def| &def.loc_expr.value) {
LetRec(assignments, body, _) => match &assignments.get(i).map(|def| &def.loc_expr.value) {
Some(Closure(ClosureData {
recursive: recursion,
..

View File

@ -272,7 +272,8 @@ mod test_load {
&def,
&mut expected_types,
),
DeclareRec(defs) => {
DeclareRec(defs, cycle_mark) => {
assert!(!cycle_mark.is_illegal(&subs));
for def in defs {
expect_def(
&loaded_module.interns,