|
@@ -3,7 +3,7 @@
|
|
|
* Company: Lynar Studios
|
|
|
* E-Mail: webmaster@lynarstudios.com
|
|
|
* Created: 2020-11-14
|
|
|
- * Changed: 2023-03-25
|
|
|
+ * Changed: 2023-05-15
|
|
|
*
|
|
|
* */
|
|
|
|
|
@@ -147,15 +147,15 @@ namespace
|
|
|
paintingMachine.addListener(this->mercedes2);
|
|
|
paintingMachine.addListener(this->mercedes3);
|
|
|
|
|
|
- ASSERT_STREQ("pink", this->mercedes1->getColor().c_str());
|
|
|
- ASSERT_STREQ("blue", this->mercedes2->getColor().c_str());
|
|
|
- ASSERT_STREQ("red", this->mercedes3->getColor().c_str());
|
|
|
+ ASSERT_STREQ("pink", this->mercedes1->getColor().data());
|
|
|
+ ASSERT_STREQ("blue", this->mercedes2->getColor().data());
|
|
|
+ ASSERT_STREQ("red", this->mercedes3->getColor().data());
|
|
|
|
|
|
Colour newColor = Colour{"black"};
|
|
|
paintingMachine.tell(static_cast<const Class &>(newColor));
|
|
|
|
|
|
- ASSERT_STREQ("black", this->mercedes1->getColor().c_str());
|
|
|
- ASSERT_STREQ("black", this->mercedes2->getColor().c_str());
|
|
|
- ASSERT_STREQ("black", this->mercedes3->getColor().c_str());
|
|
|
+ ASSERT_STREQ("black", this->mercedes1->getColor().data());
|
|
|
+ ASSERT_STREQ("black", this->mercedes2->getColor().data());
|
|
|
+ ASSERT_STREQ("black", this->mercedes3->getColor().data());
|
|
|
}
|
|
|
}
|