Skip to content

Commit 353912b

Browse files
committed
assert rewriting the call site
1 parent 0e2ef16 commit 353912b

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/monomorph_pass.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -947,11 +947,6 @@ mod tests {
947947
assert!(result.is_ok());
948948
let all_decls = result.unwrap();
949949

950-
println!("All Decls:");
951-
for decl in &all_decls {
952-
println!("{:?}", decl.name().to_string());
953-
}
954-
955950
// Should have 2 decls: main, id$i32 (specialized)
956951
assert_eq!(all_decls.len(), 2);
957952

@@ -975,5 +970,8 @@ mod tests {
975970
} else {
976971
panic!("Expected function declaration");
977972
}
973+
974+
assert_eq!(all_decls[0].pretty_print(), "id$i32$i32(x: i32) → i32 x");
975+
assert_eq!(all_decls[1].pretty_print(), "main() → i32 id$i32$i32(42)");
978976
}
979977
}

0 commit comments

Comments
 (0)