Created
November 16, 2019 02:40
-
-
Save zhaofeng-shu33/be6720ad833061d0b1b107da57a8de8a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <gtest/gtest.h> | |
class A : public testing::Test { | |
protected: | |
int a; | |
void SetUp() override { | |
a = 2; | |
} | |
}; | |
TEST_F(A, power) { | |
EXPECT_EQ(a * a, 4); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment