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 7f3c28a..eb3a764 100644 (file)
@@ -413,12 +413,12 @@ namespace tut
         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);
 
-        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);