1
0
mirror of https://github.com/falk-werner/webfuse synced 2024-10-27 20:34:10 +00:00
falk-werner_webfuse/build/dobuild/tests/fixtures/cmake-gtest-example/test_stringcompare.cpp

25 lines
460 B
C++
Raw Normal View History

#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, Equal)
{
EXPECT_STREQ(expectVal, actualValTrue);
}
TEST(StrCompare, NotEqual)
{
EXPECT_STRNE(expectVal, actualValFalse);
}
TEST(StrCompare, WithNonReproducibleValues)
{
EXPECT_STREQ(__DATE__, __DATE__);
EXPECT_STREQ(__TIME__, __TIME__);
}