## 一些特性

• 跨平台，跨编译器，在多个配置下工作
• 性能快

## 断言

The assertions come in pairs that test the same thing but have different effects on the current function. ASSERT_* versions generate fatal failures when they fail, and abort the current function. EXPECT_* versions generate nonfatal failures, which don’t abort the current function. Usually EXPECT_* are preferred, as they allow more than one failure to be reported in a test. However, you should use ASSERT_* if it doesn’t make sense to continue when the assertion in question fails.

TEST宏有两个参数：

## TEST_F

TEST_F的第一个参数是Test Fixtures的名字，在C++里面是::testing:: Test类派生的类。第二个参数是TestName。而在test2中两个测试里面共享的数据成员vec是隔离的，所以就可以比较方便的进行测试。