コード例 #1
0
/* ****************************************************************************
*
* c_str -
*/
TEST(Originator, c_str)
{
  Originator   originator;

  utInit();

  originator.set("STR");
  EXPECT_STREQ("STR", originator.c_str());

  utExit();
}
コード例 #2
0
/* ****************************************************************************
*
* isEmptSetAndGet -
*/
TEST(Originator, isEmptySetAndGet)
{
  Originator   originator;

  utInit();

  originator.string = "";
  EXPECT_TRUE(originator.isEmpty());

  originator.set("STR");
  EXPECT_FALSE(originator.isEmpty());

  EXPECT_STREQ("STR", originator.get().c_str());

  utExit();
}