From 5ed7e0ad3a60f80fa7e1ea8fa2f1bfc2bdc5e347 Mon Sep 17 00:00:00 2001 From: Andras Schmelczer Date: Wed, 2 Apr 2025 20:37:36 +0100 Subject: [PATCH] Move tests --- backend/reconcile/src/operation_transformation.rs | 2 +- backend/reconcile/{test => tests}/examples/1.yml | 0 backend/reconcile/{test => tests}/examples/10.yml | 0 backend/reconcile/{test => tests}/examples/11.yml | 0 backend/reconcile/{test => tests}/examples/12.yml | 0 backend/reconcile/{test => tests}/examples/13.yml | 0 backend/reconcile/{test => tests}/examples/2.yml | 0 backend/reconcile/{test => tests}/examples/3.yml | 0 backend/reconcile/{test => tests}/examples/4.yml | 0 backend/reconcile/{test => tests}/examples/5.yml | 0 backend/reconcile/{test => tests}/examples/6.yml | 0 backend/reconcile/{test => tests}/examples/7.yml | 0 backend/reconcile/{test => tests}/examples/8.yml | 0 backend/reconcile/{test => tests}/examples/9.yml | 0 backend/reconcile/{test => tests}/resources/kun_lu.txt | 0 .../reconcile/{test => tests}/resources/pride_and_prejudice.txt | 0 .../reconcile/{test => tests}/resources/romeo_and_juliet.txt | 0 .../reconcile/{test => tests}/resources/room_with_a_view.txt | 0 backend/reconcile/tests/test.rs | 2 +- 19 files changed, 2 insertions(+), 2 deletions(-) rename backend/reconcile/{test => tests}/examples/1.yml (100%) rename backend/reconcile/{test => tests}/examples/10.yml (100%) rename backend/reconcile/{test => tests}/examples/11.yml (100%) rename backend/reconcile/{test => tests}/examples/12.yml (100%) rename backend/reconcile/{test => tests}/examples/13.yml (100%) rename backend/reconcile/{test => tests}/examples/2.yml (100%) rename backend/reconcile/{test => tests}/examples/3.yml (100%) rename backend/reconcile/{test => tests}/examples/4.yml (100%) rename backend/reconcile/{test => tests}/examples/5.yml (100%) rename backend/reconcile/{test => tests}/examples/6.yml (100%) rename backend/reconcile/{test => tests}/examples/7.yml (100%) rename backend/reconcile/{test => tests}/examples/8.yml (100%) rename backend/reconcile/{test => tests}/examples/9.yml (100%) rename backend/reconcile/{test => tests}/resources/kun_lu.txt (100%) rename backend/reconcile/{test => tests}/resources/pride_and_prejudice.txt (100%) rename backend/reconcile/{test => tests}/resources/romeo_and_juliet.txt (100%) rename backend/reconcile/{test => tests}/resources/room_with_a_view.txt (100%) diff --git a/backend/reconcile/src/operation_transformation.rs b/backend/reconcile/src/operation_transformation.rs index 4338ca6e..8c95d397 100644 --- a/backend/reconcile/src/operation_transformation.rs +++ b/backend/reconcile/src/operation_transformation.rs @@ -385,7 +385,7 @@ mod test { let files = [file_name_1, file_name_2, file_name_3]; let permutations = [range_1, range_2, range_3]; - let root = Path::new("test/resources/"); + let root = Path::new("tests/resources/"); let contents = files .iter() diff --git a/backend/reconcile/test/examples/1.yml b/backend/reconcile/tests/examples/1.yml similarity index 100% rename from backend/reconcile/test/examples/1.yml rename to backend/reconcile/tests/examples/1.yml diff --git a/backend/reconcile/test/examples/10.yml b/backend/reconcile/tests/examples/10.yml similarity index 100% rename from backend/reconcile/test/examples/10.yml rename to backend/reconcile/tests/examples/10.yml diff --git a/backend/reconcile/test/examples/11.yml b/backend/reconcile/tests/examples/11.yml similarity index 100% rename from backend/reconcile/test/examples/11.yml rename to backend/reconcile/tests/examples/11.yml diff --git a/backend/reconcile/test/examples/12.yml b/backend/reconcile/tests/examples/12.yml similarity index 100% rename from backend/reconcile/test/examples/12.yml rename to backend/reconcile/tests/examples/12.yml diff --git a/backend/reconcile/test/examples/13.yml b/backend/reconcile/tests/examples/13.yml similarity index 100% rename from backend/reconcile/test/examples/13.yml rename to backend/reconcile/tests/examples/13.yml diff --git a/backend/reconcile/test/examples/2.yml b/backend/reconcile/tests/examples/2.yml similarity index 100% rename from backend/reconcile/test/examples/2.yml rename to backend/reconcile/tests/examples/2.yml diff --git a/backend/reconcile/test/examples/3.yml b/backend/reconcile/tests/examples/3.yml similarity index 100% rename from backend/reconcile/test/examples/3.yml rename to backend/reconcile/tests/examples/3.yml diff --git a/backend/reconcile/test/examples/4.yml b/backend/reconcile/tests/examples/4.yml similarity index 100% rename from backend/reconcile/test/examples/4.yml rename to backend/reconcile/tests/examples/4.yml diff --git a/backend/reconcile/test/examples/5.yml b/backend/reconcile/tests/examples/5.yml similarity index 100% rename from backend/reconcile/test/examples/5.yml rename to backend/reconcile/tests/examples/5.yml diff --git a/backend/reconcile/test/examples/6.yml b/backend/reconcile/tests/examples/6.yml similarity index 100% rename from backend/reconcile/test/examples/6.yml rename to backend/reconcile/tests/examples/6.yml diff --git a/backend/reconcile/test/examples/7.yml b/backend/reconcile/tests/examples/7.yml similarity index 100% rename from backend/reconcile/test/examples/7.yml rename to backend/reconcile/tests/examples/7.yml diff --git a/backend/reconcile/test/examples/8.yml b/backend/reconcile/tests/examples/8.yml similarity index 100% rename from backend/reconcile/test/examples/8.yml rename to backend/reconcile/tests/examples/8.yml diff --git a/backend/reconcile/test/examples/9.yml b/backend/reconcile/tests/examples/9.yml similarity index 100% rename from backend/reconcile/test/examples/9.yml rename to backend/reconcile/tests/examples/9.yml diff --git a/backend/reconcile/test/resources/kun_lu.txt b/backend/reconcile/tests/resources/kun_lu.txt similarity index 100% rename from backend/reconcile/test/resources/kun_lu.txt rename to backend/reconcile/tests/resources/kun_lu.txt diff --git a/backend/reconcile/test/resources/pride_and_prejudice.txt b/backend/reconcile/tests/resources/pride_and_prejudice.txt similarity index 100% rename from backend/reconcile/test/resources/pride_and_prejudice.txt rename to backend/reconcile/tests/resources/pride_and_prejudice.txt diff --git a/backend/reconcile/test/resources/romeo_and_juliet.txt b/backend/reconcile/tests/resources/romeo_and_juliet.txt similarity index 100% rename from backend/reconcile/test/resources/romeo_and_juliet.txt rename to backend/reconcile/tests/resources/romeo_and_juliet.txt diff --git a/backend/reconcile/test/resources/room_with_a_view.txt b/backend/reconcile/tests/resources/room_with_a_view.txt similarity index 100% rename from backend/reconcile/test/resources/room_with_a_view.txt rename to backend/reconcile/tests/resources/room_with_a_view.txt diff --git a/backend/reconcile/tests/test.rs b/backend/reconcile/tests/test.rs index 3c677ea2..1139dc16 100644 --- a/backend/reconcile/tests/test.rs +++ b/backend/reconcile/tests/test.rs @@ -6,7 +6,7 @@ use reconcile::{reconcile, reconcile_with_cursors}; #[test] fn test_with_examples() { - let examples_dir = Path::new("test/examples"); + let examples_dir = Path::new("tests/examples"); let mut entries = fs::read_dir(examples_dir) .expect("Failed to read examples directory") .collect::>();