diff options
Diffstat (limited to 'gtests/google_test/gtest/samples/sample2_unittest.cc')
-rw-r--r-- | gtests/google_test/gtest/samples/sample2_unittest.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gtests/google_test/gtest/samples/sample2_unittest.cc b/gtests/google_test/gtest/samples/sample2_unittest.cc index 084882619..4fa19b71c 100644 --- a/gtests/google_test/gtest/samples/sample2_unittest.cc +++ b/gtests/google_test/gtest/samples/sample2_unittest.cc @@ -28,6 +28,9 @@ // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // A sample program demonstrating using Google C++ testing framework. +// +// Author: wan@google.com (Zhanyong Wan) + // This sample shows how to write a more complex unit test for a class // that has multiple member functions. @@ -39,7 +42,7 @@ #include "sample2.h" #include "gtest/gtest.h" -namespace { + // In this example, we test the MyString class (a simple string). // Tests the default c'tor. @@ -104,4 +107,3 @@ TEST(MyString, Set) { s.Set(NULL); EXPECT_STREQ(NULL, s.c_string()); } -} // namespace |