about summary refs log tree commit diff
path: root/tvix/eval
diff options
context:
space:
mode:
Diffstat (limited to 'tvix/eval')
-rw-r--r--tvix/eval/src/tests/mod.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/tvix/eval/src/tests/mod.rs b/tvix/eval/src/tests/mod.rs
index 798cc7b87b6e..84fc89641c85 100644
--- a/tvix/eval/src/tests/mod.rs
+++ b/tvix/eval/src/tests/mod.rs
@@ -27,21 +27,21 @@ fn eval_test(code_path: &str, expect_success: bool) {
                     assert_eq!(
                         result_str,
                         exp.trim(),
-                        "result value representation (left) must match expectation (right)"
+                        "{code_path}: result value representation (left) must match expectation (right)"
                     );
                 } else {
                     assert_ne!(
                         result_str,
                         exp.trim(),
-                        "test passed unexpectedly!  consider moving it out of notyetpassing"
+                        "{code_path}: test passed unexpectedly!  consider moving it out of notyetpassing"
                     );
                 }
             } else {
                 if expect_success {
-                    panic!("should be able to read test expectation");
+                    panic!("{code_path}: should be able to read test expectation");
                 } else {
                     panic!(
-                        "test should have failed, but succeeded with output {}",
+                        "{code_path}: test should have failed, but succeeded with output {}",
                         result
                     );
                 }
@@ -50,7 +50,7 @@ fn eval_test(code_path: &str, expect_success: bool) {
         Err(e) => {
             if expect_success {
                 panic!(
-                    "evaluation of eval-okay test should succeed, but failed with {:?}",
+                    "{code_path}: evaluation of eval-okay test should succeed, but failed with {:?}",
                     e
                 );
             }