mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-18 02:50:17 +00:00
fix test panic output formatting
This commit is contained in:
parent
0e56753bf1
commit
ccd8821acf
2 changed files with 18 additions and 13 deletions
|
@ -75,10 +75,10 @@ macro_rules! try_run_jit_function {
|
|||
try_run_jit_function!($lib, $main_fn_name, $ty, $transform, v)
|
||||
}};
|
||||
|
||||
($lib: expr, $main_fn_name: expr, $ty:ty, $transform:expr, $errors:expr) => {{
|
||||
try_run_jit_function!($lib, $main_fn_name, $ty, $transform, $errors, &[])
|
||||
($lib: expr, $main_fn_name: expr, $ty:ty, $transform:expr) => {{
|
||||
try_run_jit_function!($lib, $main_fn_name, $ty, $transform, &[])
|
||||
}};
|
||||
($lib: expr, $main_fn_name: expr, $ty:ty, $transform:expr, $errors:expr, $expect_failures:expr) => {{
|
||||
($lib: expr, $main_fn_name: expr, $ty:ty, $transform:expr, $expect_failures:expr) => {{
|
||||
use inkwell::context::Context;
|
||||
use roc_builtins::bitcode;
|
||||
use roc_gen_llvm::run_roc::RocCallResult;
|
||||
|
@ -110,14 +110,8 @@ macro_rules! run_jit_function {
|
|||
run_jit_function!($lib, $main_fn_name, $ty, $transform, $errors, &[])
|
||||
}};
|
||||
($lib: expr, $main_fn_name: expr, $ty:ty, $transform:expr, $errors:expr, $expect_failures:expr) => {{
|
||||
let result = $crate::try_run_jit_function!(
|
||||
$lib,
|
||||
$main_fn_name,
|
||||
$ty,
|
||||
$transform,
|
||||
$errors,
|
||||
$expect_failures
|
||||
);
|
||||
let result =
|
||||
$crate::try_run_jit_function!($lib, $main_fn_name, $ty, $transform, $expect_failures);
|
||||
|
||||
match result {
|
||||
Ok(success) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue