Skip to content

Commit

Permalink
Update jit-compiler/tests/execution.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Gastón Zanitti <[email protected]>
  • Loading branch information
chriseth and gzanitti authored Sep 24, 2024
1 parent dc7e113 commit e928a37
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion jit-compiler/tests/execution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ fn identity_function() {

assert_eq!(f(10), 10);
}

#[test]
#[should_panic = "Only (int -> int) functions and columns are supported, but requested c: int -> bool"]
fn invalid_function() {
let _ = compile("let c: int -> bool = |i| true;", "c");
}
#[test]
fn sqrt() {
let f = compile(
Expand Down

0 comments on commit e928a37

Please sign in to comment.