diff options
| author | salmonik <salmonik@tuta.io> | 2026-10-29 22:16:15 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-10-29 22:16:15 +0100 |
| commit | bc0de9955c375cf27d52c9934403964205afc182 (patch) | |
| tree | 42799fb426fb0ec164f44c92a63525003c582f35 /tests/crash.rs | |
| parent | initial connection timeout set to 10s (diff) | |
| download | zagan-bet-bc0de9955c375cf27d52c9934403964205afc182.tar.gz zagan-bet-bc0de9955c375cf27d52c9934403964205afc182.zip | |
formatting
Diffstat (limited to 'tests/crash.rs')
| -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); |
