1
0
mirror of https://github.com/falk-werner/webfuse-provider synced 2024-09-29 18:10:46 +00:00
falk-werner_webfuse-provider/build/dobuild/examples/cmake-gtest-example/test_stringcompare.cpp

19 lines
347 B
C++

#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);
}