Hi all,
I'm learning the Quicksort algorithm. I have implemented several versions of this algorithm, each in its own module. Right now, each module has it's own test suite, but the test suite is the same across all modules (so I have duplicated three times the same test suite).
The crate is organized like this:
.
├── Cargo.lock
├── Cargo.toml
└── src
├── main.rs
└── quicksort
├── hoare_partition_scheme
│ ├── leftmost_element_as_pivot.rs
│ ├── mod.rs
│ └── rightmost_element_as_pivot.rs
├── lomuto_partition_scheme
│ ├── mod.rs
│ └── README.md
└── mod.rs
I have the same test suite for the following modules:
hoare_partition_scheme::leftmost_element_as_pivot
hoare_partition_sheme::rightmost_element_as_pivot
lomuto_partition_scheme
All of these modules implement the same public function quicksort
.
Is there a way to run a single test suites on different modules?
Thank you