1
0
mirror of https://github.com/falk-werner/webfuse-provider synced 2024-10-27 20:44:10 +00:00
falk-werner_webfuse-provider/tests/fixtures/make-gtest-example/test_stringcompare.cpp
nosamad b19a54d2f9 Squashed 'build/dobuild/' content from commit b017db7
git-subtree-dir: build/dobuild
git-subtree-split: b017db7c22e7c0ca6cee3f0f5ac1dd50f3b68eb9
2020-05-25 23:24:23 +02:00

19 lines
373 B
C++

#include <gtest/gtest.h> // googletest header file
#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);
}