Skip to content
Snippets Groups Projects
Unverified Commit d0a52586 authored by gendx's avatar gendx Committed by GitHub
Browse files

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

Decrease the number of tests in debug mode, to account for slower CI on Travis
parents f5ed8a09 b162b690
Branches
No related tags found
No related merge requests found
...@@ -912,6 +912,8 @@ pub mod test { ...@@ -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] #[test]
fn test_add_is_associative() { fn test_add_is_associative() {
for x in &get_test_values_projective() { for x in &get_test_values_projective() {
......
...@@ -103,7 +103,7 @@ mod test { ...@@ -103,7 +103,7 @@ mod test {
#[cfg(not(debug_assertions))] #[cfg(not(debug_assertions))]
const ITERATIONS: u32 = 10000; const ITERATIONS: u32 = 10000;
#[cfg(debug_assertions)] #[cfg(debug_assertions)]
const ITERATIONS: u32 = 1000; const ITERATIONS: u32 = 500;
/** Test that key generation creates valid keys **/ /** Test that key generation creates valid keys **/
#[test] #[test]
......
...@@ -357,7 +357,7 @@ mod test { ...@@ -357,7 +357,7 @@ mod test {
#[cfg(not(debug_assertions))] #[cfg(not(debug_assertions))]
const ITERATIONS: u32 = 10000; const ITERATIONS: u32 = 10000;
#[cfg(debug_assertions)] #[cfg(debug_assertions)]
const ITERATIONS: u32 = 1000; const ITERATIONS: u32 = 500;
/** Test that key generation creates valid keys **/ /** Test that key generation creates valid keys **/
#[test] #[test]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment