Browse Source

Go back to using int for missile frame comparison values

The code that the gmock macros end up generating appears to obscure the type mismatch so there's no warning (in msvc on my system anyway) no matter what types are involved, for clarity the comparison ends up being between std::pair<int, unsigned int> and testing::Pair<int, testing::AllOf<testing::Matchers<unsigned int>>>
pull/5220/head
ephphatha 2 years ago committed by Anders Jenbo
parent
commit
415302fdfa
  1. 2
      test/missiles_test.cpp

2
test/missiles_test.cpp

@ -11,7 +11,7 @@ using ::testing::Lt;
using ::testing::Pair;
using ::testing::UnorderedElementsAre;
void TestArrowRotatesUniformly(Missile &missile, int startingFrame, unsigned leftFrame, unsigned rightFrame)
void TestArrowRotatesUniformly(Missile &missile, int startingFrame, int leftFrame, int rightFrame)
{
std::unordered_map<int, unsigned> observed {};
for (auto i = 0; i < 100; i++) {

Loading…
Cancel
Save