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