Closed orzechow closed 7 months ago
gtest and std::nullopt don't always work well together, see #5
std::nullopt
So, the fix is to use the bool operator() on our std::optional:
bool operator()
std::optional
EXPECT_FALSE(testPriorityArbitrator.options().at(0)->verificationResult_.cached(time));
Runs on Ubuntu 20.04, 22.04 :ok_hand:
Maybe that didn't work in Ubuntu18.04 or so, such that I had to do the EXPECT_EQ back in the ancient days…
EXPECT_EQ
Closes #5
Of course, testing makes more sense when combined with #4
gtest and
std::nullopt
don't always work well together, see #5So, the fix is to use the
bool operator()
on ourstd::optional
:Runs on Ubuntu 20.04, 22.04 :ok_hand:
Maybe that didn't work in Ubuntu18.04 or so, such that I had to do the
EXPECT_EQ
back in the ancient days…Closes #5
Of course, testing makes more sense when combined with #4