Make nalgebra-sparse unit tests require io feature

This commit is contained in:
Andreas Longva 2021-12-01 11:26:51 +01:00
parent 1b73b2f991
commit 4c039573f2
2 changed files with 9 additions and 3 deletions

View File

@ -1,6 +1,13 @@
//! Unit tests
#[cfg(any(not(feature = "proptest-support"), not(feature = "compare")))]
compile_error!("Tests must be run with features `proptest-support` and `compare`");
#[cfg(not(all(
feature = "proptest-support",
feature = "compare",
feature = "io",
)))]
compile_error!(
"Please enable the `proptest-support`, `compare` and `io` features in order to compile and run the tests.
Example: `cargo test -p nalgebra-sparse --features proptest-support,compare,io`"
);
mod unit_tests;

View File

@ -3,7 +3,6 @@ mod convert_serial;
mod coo;
mod csc;
mod csr;
#[cfg(feature = "io")]
mod matrix_market;
mod ops;
mod pattern;