X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/d0adbf3d56cb2e95fae085700c3e305b134cbaf0..478b43b528b9f209abc10a1928a389f81885869e:/tests/test_fee_charge_rules.cpp diff --git a/tests/test_fee_charge_rules.cpp b/tests/test_fee_charge_rules.cpp index 657a609a..dfe7e850 100644 --- a/tests/test_fee_charge_rules.cpp +++ b/tests/test_fee_charge_rules.cpp @@ -8,8 +8,6 @@ #include "testadmin.h" #include "teststore.h" -const volatile time_t stgTime = 0; - namespace tut { struct fee_charge_rules_data { @@ -89,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(); @@ -121,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();