Relax std::monostate printing assertion in test on Windows
PiperOrigin-RevId: 956505817 Change-Id: I63dadf346271e88cfefeb1e3e9e9a37d6c2dd6ad
This commit is contained in:
committed by
Copybara-Service
parent
a0f06a70e3
commit
3940de9189
@@ -2043,8 +2043,9 @@ TEST(PrintVariantTest, Monostate) {
|
||||
}
|
||||
};
|
||||
std::variant<std::monostate, ThrowOnMove> v = std::monostate();
|
||||
EXPECT_EQ("('std::monostate(index = 0)' with value (monostate))",
|
||||
PrintToString(v));
|
||||
std::string res = PrintToString(v);
|
||||
EXPECT_NE(res.find("::monostate(index = 0)' with value (monostate))"),
|
||||
res.npos);
|
||||
EXPECT_THROW(v = ThrowOnMove(), std::out_of_range);
|
||||
EXPECT_EQ("(valueless)", PrintToString(v));
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user