]> git.stg.codes - stg.git/commitdiff
Ticket 37. The 'equal' parameter of the TariffChangeIsAllow() fixed to
authorElena Mamontova <helenh463@gmail.com>
Tue, 6 Sep 2016 11:49:56 +0000 (14:49 +0300)
committerElena Mamontova <helenh463@gmail.com>
Tue, 6 Sep 2016 11:49:56 +0000 (14:49 +0300)
'equals' in the testobject::test<7>(), testobject::test<8>() functions.

tests/test_tariff.cpp

index 188785c7eff02ab81913bd34d6a178e345e48b60..b671e0b5b33b7bb38f3d22593dbd30875fe36d37 100644 (file)
@@ -364,7 +364,7 @@ namespace tut
         td.tariffConf.fee = 100;
         TARIFF_IMPL equals(td);
 
-        ensure_equals("Allow equal", tariff.TariffChangeIsAllowed(equal).empty(), true);
+        ensure_equals("Allow equal", tariff.TariffChangeIsAllowed(equals).empty(), true);
 
         td.tariffConf.fee = 150;
         TARIFF_IMPL expensive(td);
@@ -391,7 +391,7 @@ namespace tut
         td.tariffConf.fee = 100;
         TARIFF_IMPL equals(td);
 
-        ensure_equals("Allow equal", !tariff.TariffChangeIsAllowed(equal).empty(), true);
+        ensure_equals("Allow equal", !tariff.TariffChangeIsAllowed(equals).empty(), true);
 
         td.tariffConf.fee = 150;
         TARIFF_IMPL expensive(td);