From c00e777762288416568cceb0e9c06cda1efbf9be Mon Sep 17 00:00:00 2001 From: "Andrew Phillips (aider)" Date: Mon, 12 May 2025 13:34:22 -0300 Subject: [PATCH] refactor: reorder code in create_test_items function --- src/tests.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tests.rs b/src/tests.rs index 57b86a2..5f530ff 100644 --- a/src/tests.rs +++ b/src/tests.rs @@ -36,13 +36,13 @@ mod tests { // Helper function to create test items with specific content and tags fn create_test_items(dir: &Path) { - // Set the data directory for this test - let env = format!("KEEP_DIR={} cargo run --", dir.display()); - - // Create test items + // Create the test items let input_a = "test content A"; let input_b = "test content B"; + // Set the data directory for this test + let env = format!("KEEP_DIR={} cargo run --", dir.display()); + // Create first item with tag_a and tag let cmd = format!("echo {} | {} tag tag_a tag", input_a, env); let output = run_sh(cmd.as_str());