diff options
| author | Charlie Blake | 2017-10-13 19:05:13 +0100 |
|---|---|---|
| committer | GitHub | 2017-10-13 19:05:13 +0100 |
| commit | c1f4a1a4368bd45747f864910ae5136dccb857a6 (patch) | |
| tree | b3bdce7b7cd6c46f6928368f2c91f9d994fc48e7 /src/test | |
| parent | Merge pull request #8 from thecharlesblake/docs (diff) | |
| parent | Update build instructions with new install (diff) | |
| download | metasol-c1f4a1a4368bd45747f864910ae5136dccb857a6.tar.gz metasol-c1f4a1a4368bd45747f864910ae5136dccb857a6.zip | |
Merge pull request #10 from thecharlesblake/project-setup-cpp
Project setup cpp
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/main_test.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/test/main_test.cpp b/src/test/main_test.cpp new file mode 100644 index 0000000..3f2081f --- /dev/null +++ b/src/test/main_test.cpp @@ -0,0 +1,19 @@ +// +// Created by thecharlesblake on 10/4/17. +// + +#include <gtest/gtest.h> + +const int actualValTrue = 4; +const int actualValFalse = 8; +const int expectVal = 4; + +namespace { + TEST(StrCompare, CStrEqual) { + EXPECT_EQ(expectVal, actualValTrue); + } + + TEST(StrCompare, CStrNotEqual) { + EXPECT_NE(expectVal, actualValFalse); + } +} |
