Files
create/tests/src/Misc/test1.cpp
berniev 9a05a04dad Improve unit testing directory structure
Separate Qt tests and gtest tests
Add a basic shadow of the project structure
Add a few simple tests to demonstrate usage
2023-01-30 07:15:09 -07:00

20 lines
404 B
C++

#include "gtest/gtest.h"
TEST(FirstSuite, FirstTest){
EXPECT_NE(1, 1) << "are in fact equal";
}
TEST(FirstSuite, SecondTest){
EXPECT_EQ(1, 2) << "not equal";
}
TEST(FirstSuite, ThirdTest){
ASSERT_STREQ("A", "A") << "str not equal";
}
TEST(FirstSuite,FifthTest){
ASSERT_STRNE("am", "am") << "str equal";
}
TEST(FirstSuite, FourthTest){
ASSERT_STREQ("am", "A") << "str not equal";
}