Open Ryanf55 opened 1 month ago
NOPE
Checking that two doubles are NOT equal is more difficult than it is to check they are equal per S.O.
One approach is to bring in gmock and link to it if you want to check a double value is not equal:
#include <gmock/gmock.h> #include <gtest/gtest.h> EXPECT_DOUBLE_EQ(another_value, 3.14); EXPECT_THAT(another_value, testing::Not(testing::DoubleEq(3.14)));
Here is what I would prefer for the API, which use "NE" like EXPECT_NE
EXPECT_NE
EXPECT_DOUBLE_EQ(another_value, 3.14); EXPECT_DOUBLE_NE(another_value, 3.14);
Same with
It could be implemented on any OS.
Hi! If this feature hasn't been taken by anyone yet I'd like to work on it!
Does the feature exist in the most recent commit?
NOPE
Why do we need this feature?
Checking that two doubles are NOT equal is more difficult than it is to check they are equal per S.O.
One approach is to bring in gmock and link to it if you want to check a double value is not equal:
Describe the proposal.
Here is what I would prefer for the API, which use "NE" like
EXPECT_NE
Same with
Is the feature specific to an operating system, compiler, or build system version?
It could be implemented on any OS.