diff options
Diffstat (limited to 'tvix/eval/src/tests/mod.rs')
-rw-r--r-- | tvix/eval/src/tests/mod.rs | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/tvix/eval/src/tests/mod.rs b/tvix/eval/src/tests/mod.rs index 1c872f67d2b0..bb46cf2b79b0 100644 --- a/tvix/eval/src/tests/mod.rs +++ b/tvix/eval/src/tests/mod.rs @@ -49,15 +49,13 @@ fn eval_test(code_path: &str, expect_success: bool) { "{code_path}: test passed unexpectedly! consider moving it out of notyetpassing" ); } + } else if expect_success { + panic!("{code_path}: should be able to read test expectation"); } else { - if expect_success { - panic!("{code_path}: should be able to read test expectation"); - } else { - panic!( - "{code_path}: test should have failed, but succeeded with output {}", - result_str - ); - } + panic!( + "{code_path}: test should have failed, but succeeded with output {}", + result_str + ); } } |