You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
347 B
19 lines
347 B
4 years ago
|
#include <gtest/gtest.h>
|
||
|
|
||
|
#include <string>
|
||
|
using std::string;
|
||
|
|
||
|
char const actualValTrue[] = "hello gtest";
|
||
|
char const actualValFalse[] = "hello world";
|
||
|
char const expectVal[] = "hello gtest";
|
||
|
|
||
|
TEST(StrCompare, CStrEqual)
|
||
|
{
|
||
|
EXPECT_STREQ(expectVal, actualValTrue);
|
||
|
}
|
||
|
|
||
|
TEST(StrCompare, CStrNotEqual)
|
||
|
{
|
||
|
EXPECT_STRNE(expectVal, actualValFalse);
|
||
|
}
|