]> git.stg.codes - stg.git/commitdiff
Ticket 37. td.tariffConf.changePolicy definition fixed in the
authorElena Mamontova <helenh463@gmail.com>
Tue, 6 Sep 2016 12:01:33 +0000 (15:01 +0300)
committerElena Mamontova <helenh463@gmail.com>
Tue, 6 Sep 2016 12:01:33 +0000 (15:01 +0300)
testobject::test<7>(), testobject::test<8>() functions.

tests/test_tariff.cpp

index b671e0b5b33b7bb38f3d22593dbd30875fe36d37..71b1e57b74e5db0c619ce251525b9d8992d35da7 100644 (file)
@@ -352,7 +352,7 @@ namespace tut
         set_test_name("Check changePolicy - ALLOW");
 
         TARIFF_DATA td("test");
         set_test_name("Check changePolicy - ALLOW");
 
         TARIFF_DATA td("test");
-        td.tariffConf.changePolicy = TARIFF::CHANGE_POLICY ALLOW;
+        td.tariffConf.changePolicy = TARIFF::ALLOW;
         td.tariffConf.fee = 100;
         TARIFF_IMPL tariff(td);
 
         td.tariffConf.fee = 100;
         TARIFF_IMPL tariff(td);
 
@@ -379,7 +379,7 @@ namespace tut
         set_test_name("Check changePolicy - TO_CHEAP");
 
         TARIFF_DATA td("test");
         set_test_name("Check changePolicy - TO_CHEAP");
 
         TARIFF_DATA td("test");
-        td.tariffConf.changePolicy = TARIFF::CHANGE_POLICY TO_CHEAP;
+        td.tariffConf.changePolicy = TARIFF::TO_CHEAP;
         td.tariffConf.fee = 100;
         TARIFF_IMPL tariff(td);
 
         td.tariffConf.fee = 100;
         TARIFF_IMPL tariff(td);