From 50eaf5befdf36fbc439ddb9bb63a0908d7317487 Mon Sep 17 00:00:00 2001 From: Will Lillis Date: Sun, 13 Apr 2025 23:50:30 -0400 Subject: [PATCH] fix(query): correct expected and actual capture names in query assertions error message --- cli/src/query_testing.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/query_testing.rs b/cli/src/query_testing.rs index 289591f0..e4923d65 100644 --- a/cli/src/query_testing.rs +++ b/cli/src/query_testing.rs @@ -237,8 +237,8 @@ pub fn assert_expected_captures( return Err(anyhow!( "Assertion failed: at {}, found {}, expected {}", found.start, + found.name, assertion.expected_capture_name, - found.name )); } } else {