]> git.stg.codes - stg.git/commitdiff
Ticket 37. The true parameter changed to false in ensure_equals()
authorElena Mamontova <helenh463@gmail.com>
Fri, 9 Sep 2016 11:49:53 +0000 (14:49 +0300)
committerElena Mamontova <helenh463@gmail.com>
Fri, 9 Sep 2016 11:49:53 +0000 (14:49 +0300)
function for the equal and cheper check in the
testobject::text<9>() function.

tests/test_tariff.cpp

index 7f3c28a46378614c69939eee1a80eed257aa4523..eb3a764f83ef8337e5f3539cc0860e17cb49512c 100644 (file)
@@ -413,12 +413,12 @@ namespace tut
         td.tariffConf.fee = 50;
         TARIFF_IMPL cheaper(td);
 
         td.tariffConf.fee = 50;
         TARIFF_IMPL cheaper(td);
 
-        ensure_equals("Prohibit cheaper", !tariff.TariffChangeIsAllowed(cheaper).empty(), true);
+        ensure_equals("Prohibit cheaper", tariff.TariffChangeIsAllowed(cheaper).empty(), false);
 
         td.tariffConf.fee = 100;
         TARIFF_IMPL equal(td);
 
 
         td.tariffConf.fee = 100;
         TARIFF_IMPL equal(td);
 
-        ensure_equals("Prohibit equal", !tariff.TariffChangeIsAllowed(equal).empty(), true);
+        ensure_equals("Prohibit equal", tariff.TariffChangeIsAllowed(equal).empty(), false);
 
         td.tariffConf.fee = 150;
         TARIFF_IMPL expensive(td);
 
         td.tariffConf.fee = 150;
         TARIFF_IMPL expensive(td);