说明 理解被测试代码 理解测试代码 TEST宏 EXPECT_*断言和ASSERT_*断言 检查数值比较结果的断言 检查布尔值的断言 说明 被测试代码文件 sample1.h.sample1.cc 测试代码文件 sample1_unittest.cc 官网上如是描述sample1: Sample #1 shows the basic steps of using Google Test to test C++ functions. sample1演示了如何使用gtest来对C++函数进行单元测试
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below. For example, given the following triangle [ [], [,4], [6,,7], [4,,8,3] ] The minimum path sum from top to bottom is 11 (i.e.,