From 66ac4909aea5c4dc9c43e6f11518c34049c6bd5e Mon Sep 17 00:00:00 2001 From: "zhanyong.wan" Date: Sat, 5 Mar 2011 01:16:12 +0000 Subject: [PATCH] Fixes non-conforming uses of commas in enums s.t. the code compiles on Sun OS. Patch by Hady Zalek. --- test/gtest-printers_test.cc | 4 ++-- test/gtest_unittest.cc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/gtest-printers_test.cc b/test/gtest-printers_test.cc index 9aba39a4..8992a9a7 100644 --- a/test/gtest-printers_test.cc +++ b/test/gtest-printers_test.cc @@ -74,7 +74,7 @@ enum EnumWithoutPrinter { // An enum with a << operator. enum EnumWithStreaming { - kEWS1 = 10, + kEWS1 = 10 }; std::ostream& operator<<(std::ostream& os, EnumWithStreaming e) { @@ -83,7 +83,7 @@ std::ostream& operator<<(std::ostream& os, EnumWithStreaming e) { // An enum with a PrintTo() function. enum EnumWithPrintTo { - kEWPT1 = 1, + kEWPT1 = 1 }; void PrintTo(EnumWithPrintTo e, std::ostream* os) { diff --git a/test/gtest_unittest.cc b/test/gtest_unittest.cc index 3f0456e9..e6619d57 100644 --- a/test/gtest_unittest.cc +++ b/test/gtest_unittest.cc @@ -3811,7 +3811,7 @@ TEST(AssertionTest, ExpectWorksWithUncopyableObject) { enum NamedEnum { kE1 = 0, - kE2 = 1, + kE2 = 1 }; TEST(AssertionTest, NamedEnum) {