summaryrefslogtreecommitdiffstats
path: root/tests/crash.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/crash.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/crash.rs b/tests/crash.rs
index 49eaf89..c985ebe 100644
--- a/tests/crash.rs
+++ b/tests/crash.rs
@@ -2,8 +2,8 @@
2 2
3use std::time::Duration; 3use std::time::Duration;
4use zagan_bet::crash::{ 4use zagan_bet::crash::{
5 crash_point_from_uniform, multiplier_at, multiplier_at_secs, payout, time_for_multiplier, 5 HOUSE_EDGE, MAX_MULTIPLIER, crash_point_from_uniform, multiplier_at, multiplier_at_secs,
6 HOUSE_EDGE, MAX_MULTIPLIER, 6 payout, time_for_multiplier,
7}; 7};
8 8
9fn close(a: f64, b: f64, tolerance: f64) { 9fn close(a: f64, b: f64, tolerance: f64) {
@@ -38,9 +38,9 @@ fn the_time_for_a_multiplier_is_the_inverse_of_the_curve() {
38} 38}
39 39
40#[test] 40#[test]
41fn cashout_value_is_floored_to_whole_pln() { 41fn cashout_value_is_floored_to_whole_Kr() {
42 assert_eq!(payout(10, 1.0), 10); 42 assert_eq!(payout(10, 1.0), 10);
43 assert_eq!(payout(10, 1.05), 10, "half a PLN is not paid out"); 43 assert_eq!(payout(10, 1.05), 10, "half a Kr is not paid out");
44 assert_eq!(payout(10, 1.10), 11); 44 assert_eq!(payout(10, 1.10), 11);
45 assert_eq!(payout(10, 2.47), 24); 45 assert_eq!(payout(10, 2.47), 24);
46 assert_eq!(payout(7, 3.0), 21); 46 assert_eq!(payout(7, 3.0), 21);