From c4a794c4f25ada8c51db41aae1d7999525d3b637 Mon Sep 17 00:00:00 2001 From: Stephan Rehfeld Date: Wed, 13 May 2026 18:38:22 +0200 Subject: [PATCH] Example for seperate tests in tests directory --- src/geometry.rs | 2 +- tests/long_running_tests.rs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 tests/long_running_tests.rs diff --git a/src/geometry.rs b/src/geometry.rs index e6f4c6c..4597a75 100644 --- a/src/geometry.rs +++ b/src/geometry.rs @@ -51,6 +51,6 @@ mod tests { #[test] #[should_panic] fn foo() { - //panic!("This code panics!"); + panic!("This code panics!"); } } diff --git a/tests/long_running_tests.rs b/tests/long_running_tests.rs new file mode 100644 index 0000000..64de9cc --- /dev/null +++ b/tests/long_running_tests.rs @@ -0,0 +1,2 @@ +#[test] +fn very_long_running_test() {}