Skip to content

Commit

Permalink
util_test.cpp: Add a new temporary test to validate gtest works fine …
Browse files Browse the repository at this point in the history
…for us.
  • Loading branch information
ivucica authored Sep 18, 2024
1 parent edd52da commit 3fb0c11
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions util_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

#include <string>
#include <gtest/gtest.h>
#include "util.h"
#include "util.h"

// Demonstrate some basic assertions.
TEST(StrReplaceTest, BasicAssertions) {

Check notice on line 26 in util_test.cpp

View workflow job for this annotation

GitHub Actions / JUnit Test Report

util_test.cpp.BasicAssertions

BasicAssertions
Expand All @@ -31,6 +31,9 @@ TEST(StrReplaceTest, BasicAssertions) {
auto want = "hi world";

EXPECT_STREQ(got.c_str(), want);
// Expect equality.
//EXPECT_EQ(7 * 6, 42);
}

TEST(EqualityTest, BasicAssertions) {

Check notice on line 36 in util_test.cpp

View workflow job for this annotation

GitHub Actions / JUnit Test Report

util_test.cpp.BasicAssertions

BasicAssertions
// Expect equality.
EXPECT_EQ(7 * 6, 42);
}

0 comments on commit 3fb0c11

Please sign in to comment.