From: Elena Mamontova Date: Fri, 9 Sep 2016 11:49:53 +0000 (+0300) Subject: Ticket 37. The true parameter changed to false in ensure_equals() X-Git-Tag: 2.409~95 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/d30ba9e41fa70e8f709f2d89cfef7f342a9fd4e5?ds=sidebyside;hp=6c87c37a9ad6f98c00471ea9e3c97cdd978f46fc Ticket 37. The true parameter changed to false in ensure_equals() function for the equal and cheper check in the testobject::text<9>() function. --- diff --git a/tests/test_tariff.cpp b/tests/test_tariff.cpp index 7f3c28a4..eb3a764f 100644 --- a/tests/test_tariff.cpp +++ b/tests/test_tariff.cpp @@ -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);