From c988ebb4e732be3c85a13fb7694d30eb09cc9d4b Mon Sep 17 00:00:00 2001 From: Andreas Longva Date: Thu, 14 Jan 2021 17:17:52 +0100 Subject: [PATCH] Fail test compilation if compare feature is missing --- nalgebra-sparse/tests/unit.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nalgebra-sparse/tests/unit.rs b/nalgebra-sparse/tests/unit.rs index b7badffd..014a67f5 100644 --- a/nalgebra-sparse/tests/unit.rs +++ b/nalgebra-sparse/tests/unit.rs @@ -1,6 +1,6 @@ //! Unit tests -#[cfg(not(feature = "proptest-support"))] -compile_error!("Tests must be run with feature proptest-support"); +#[cfg(any(not(feature = "proptest-support"), not(feature = "compare")))] +compile_error!("Tests must be run with features `proptest-support` and `compare`"); mod unit_tests;