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

tests/test_tariff.cpp

index 2af67015f06d6d1517295254d1cc24f5232e9faa..7f3c28a46378614c69939eee1a80eed257aa4523 100644 (file)
@@ -391,12 +391,12 @@ namespace tut
         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);
     }
 
     template<>