Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Page 626: Unit test for minmax function fails. #138
However, after I changed the test to the following code then it passed:
Notice the main change:
It seems to not like the literal string values "minimaxes"s and "maximin"s and wants them to be assigned to variables. Hence the above code change.
This seems a bit odd to me (the fact that it won't accept literals etc). I'm not sure why it's designed to behave this way.
(PS: I'm using C++17 in Visual Studio 2019, using Microsoft's compiler, not clang, in case that's relevant.)