X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/2d09f6a7afb3481586a9471b0cde35aac271ce9d..daf813b21793e76a3bd318795d06db6040ff7b2c:/tests/test_fee_charge_rules.cpp diff --git a/tests/test_fee_charge_rules.cpp b/tests/test_fee_charge_rules.cpp index 0b55e5de..dfe7e850 100644 --- a/tests/test_fee_charge_rules.cpp +++ b/tests/test_fee_charge_rules.cpp @@ -87,7 +87,7 @@ namespace tut user.ProcessDayFee(); ensure_equals("user.cash == 0", user.GetProperty().cash, 0); user.ProcessDayFee(); - ensure_equals("user.cash == 0", user.GetProperty().cash, 0); + ensure_equals("user.cash == 0", user.GetProperty().cash, -50); cash = 49; ensure_equals("user.cash == 49", user.GetProperty().cash, 49); user.ProcessDayFee(); @@ -119,10 +119,11 @@ namespace tut user.ProcessDayFee(); ensure_equals("user.cash == 50", user.GetProperty().cash, 50); user.ProcessDayFee(); - ensure_equals("user.cash == 50", user.GetProperty().cash, 50); - tariffs.SetFee(49); + ensure_equals("user.cash == 50", user.GetProperty().cash, 0); + cash = 50; + tariffs.SetFee(51); user.ProcessDayFee(); - ensure_equals("user.cash == 1", user.GetProperty().cash, 1); + ensure_equals("user.cash == 50", user.GetProperty().cash, 50); cash = 0; ensure_equals("user.cash == 0", user.GetProperty().cash, 0); user.ProcessDayFee();