summaryrefslogtreecommitdiff
path: root/googlemock
diff options
context:
space:
mode:
authorVladimir Goncharov <amatanhead@yandex-team.ru>2020-07-07 20:00:09 +0300
committerVladimir Goncharov <amatanhead@yandex-team.ru>2020-08-03 23:47:57 +0300
commit4ebbfea623212704fccfe2cbf79bba0bc8fb6770 (patch)
treeb17e77337e05ba299a1f6359ffe89a038a0d26f0 /googlemock
parentc46bdea43ace31b3f62ccffc60387e7e329dc190 (diff)
downloadgoogletest-git-4ebbfea623212704fccfe2cbf79bba0bc8fb6770.tar.gz
Fix build under msvc
Diffstat (limited to 'googlemock')
-rw-r--r--googlemock/test/gmock-matchers_test.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/googlemock/test/gmock-matchers_test.cc b/googlemock/test/gmock-matchers_test.cc
index 63cd99b9..a8b39b8f 100644
--- a/googlemock/test/gmock-matchers_test.cc
+++ b/googlemock/test/gmock-matchers_test.cc
@@ -8151,28 +8151,28 @@ TEST(ThrowsTest, CallableExecutedExactlyOnce) {
EXPECT_THAT(
[&a]() { a++; throw 10; },
Throws<int>());
- EXPECT_EQ(a, 1);
+ EXPECT_EQ(a, 1u);
EXPECT_THAT(
[&a]() { a++; throw std::runtime_error("message"); },
Throws<std::runtime_error>());
- EXPECT_EQ(a, 2);
+ EXPECT_EQ(a, 2u);
EXPECT_THAT(
[&a]() { a++; throw std::runtime_error("message"); },
ThrowsMessage<std::runtime_error>(HasSubstr("message")));
- EXPECT_EQ(a, 3);
+ EXPECT_EQ(a, 3u);
EXPECT_THAT(
[&a]() { a++; throw std::runtime_error("message"); },
ThrowsMessageHasSubstr<std::runtime_error>("message"));
- EXPECT_EQ(a, 4);
+ EXPECT_EQ(a, 4u);
EXPECT_THAT(
[&a]() { a++; throw std::runtime_error("message"); },
Throws<std::runtime_error>(
Property(&std::runtime_error::what, HasSubstr("message"))));
- EXPECT_EQ(a, 5);
+ EXPECT_EQ(a, 5u);
}
TEST(ThrowsTest, Describe) {