From e928a376cb8818425d5e459bef6eb638deccde88 Mon Sep 17 00:00:00 2001 From: chriseth Date: Tue, 24 Sep 2024 18:21:00 +0200 Subject: [PATCH] Update jit-compiler/tests/execution.rs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Gastón Zanitti --- jit-compiler/tests/execution.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/jit-compiler/tests/execution.rs b/jit-compiler/tests/execution.rs index b20b00db2..89d4dcd75 100644 --- a/jit-compiler/tests/execution.rs +++ b/jit-compiler/tests/execution.rs @@ -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(