diff options
Diffstat (limited to '')
| -rw-r--r-- | tests/crash.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/crash.rs b/tests/crash.rs index f59c52f..49eaf89 100644 --- a/tests/crash.rs +++ b/tests/crash.rs | |||
| @@ -18,7 +18,11 @@ fn the_multiplier_doubles_every_five_seconds() { | |||
| 18 | close(multiplier_at(Duration::ZERO), 1.0, 1e-9); | 18 | close(multiplier_at(Duration::ZERO), 1.0, 1e-9); |
| 19 | close(multiplier_at(Duration::from_secs(5)), 2.0, 1e-9); | 19 | close(multiplier_at(Duration::from_secs(5)), 2.0, 1e-9); |
| 20 | close(multiplier_at(Duration::from_secs(10)), 4.0, 1e-6); | 20 | close(multiplier_at(Duration::from_secs(10)), 4.0, 1e-6); |
| 21 | close(multiplier_at(Duration::from_millis(2500)), 1.414_213_562, 1e-6); | 21 | close( |
| 22 | multiplier_at(Duration::from_millis(2500)), | ||
| 23 | 1.414_213_562, | ||
| 24 | 1e-6, | ||
| 25 | ); | ||
| 22 | 26 | ||
| 23 | // Never below 1x, even for nonsense input. | 27 | // Never below 1x, even for nonsense input. |
| 24 | assert_eq!(multiplier_at_secs(-3.0), 1.0); | 28 | assert_eq!(multiplier_at_secs(-3.0), 1.0); |
