The order of the operators in the struct should match the order of the test cases

This makes it a bit easier to follow the logic for anyone reading the tests as docs.
This commit is contained in:
Rasesh Patel 2019-06-10 15:07:41 -07:00 committed by GitHub
parent 361cb8a9db
commit 56ffa78ce3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1793,8 +1793,8 @@ TEST(VariantTest, VisitSimple) {
EXPECT_EQ("B", piece); EXPECT_EQ("B", piece);
struct StrLen { struct StrLen {
int operator()(const std::string& s) const { return s.size(); }
int operator()(const char* s) const { return strlen(s); } int operator()(const char* s) const { return strlen(s); }
int operator()(const std::string& s) const { return s.size(); }
}; };
v = "SomeStr"; v = "SomeStr";