Merge pull request #19 from gendx/tune-tests-travis

Decrease the number of tests in debug mode, to account for slower CI on Travis
This commit is contained in:
gendx
2020-02-06 14:20:51 +01:00
committed by GitHub
3 changed files with 4 additions and 2 deletions

View File

@@ -912,6 +912,8 @@ pub mod test {
}
}
// Due to the 3 nested loops, this test is super slow with debug assertions enabled.
#[cfg(not(debug_assertions))]
#[test]
fn test_add_is_associative() {
for x in &get_test_values_projective() {

View File

@@ -103,7 +103,7 @@ mod test {
#[cfg(not(debug_assertions))]
const ITERATIONS: u32 = 10000;
#[cfg(debug_assertions)]
const ITERATIONS: u32 = 1000;
const ITERATIONS: u32 = 500;
/** Test that key generation creates valid keys **/
#[test]

View File

@@ -357,7 +357,7 @@ mod test {
#[cfg(not(debug_assertions))]
const ITERATIONS: u32 = 10000;
#[cfg(debug_assertions)]
const ITERATIONS: u32 = 1000;
const ITERATIONS: u32 = 500;
/** Test that key generation creates valid keys **/
#[test]