]> 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:52:37 +0000 (14:52 +0300)
committerElena Mamontova <helenh463@gmail.com>
Fri, 9 Sep 2016 11:52:37 +0000 (14:52 +0300)
function for the equal, expensive  and cheper check in the testobject::text<10>()
function.

tests/test_tariff.cpp

index eb3a764f83ef8337e5f3539cc0860e17cb49512c..90c91d31b9d59ae1e08941a7e829b9384a16e2a4 100644 (file)
@@ -440,16 +440,16 @@ 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);
 
-        ensure_equals("Prohibit expensive", !tariff.TariffChangeIsAllowed(expensive).empty(), true);
+        ensure_equals("Prohibit expensive", tariff.TariffChangeIsAllowed(expensive).empty(), false);
     }
 }