Commit 56ffa78c by Rasesh Patel Committed by GitHub

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.
parent 361cb8a9
...@@ -1793,8 +1793,8 @@ TEST(VariantTest, VisitSimple) { ...@@ -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";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment