forked from OSchip/llvm-project
Fix a buildbot failure in include-fixer.
llvm-svn: 288495
This commit is contained in:
parent
e705c8b5e6
commit
4bf67af2d5
|
@ -111,13 +111,10 @@ TEST(IncludeFixer, Typo) {
|
|||
EXPECT_EQ("#include <string>\nstd::string foo;\n",
|
||||
runIncludeFixer("std::string foo;\n"));
|
||||
|
||||
// FIXME: the current version of include-fixer does not get this test case
|
||||
// right - header should be inserted before definition.
|
||||
EXPECT_EQ(
|
||||
"// comment\n#include \"foo.h\"\nstd::string foo;\n"
|
||||
"#include \"dir/bar.h\"\n#include <string>\n",
|
||||
runIncludeFixer("// comment\n#include \"foo.h\"\nstd::string foo;\n"
|
||||
"#include \"dir/bar.h\"\n"));
|
||||
EXPECT_EQ("// comment\n#include \"foo.h\"\n#include <string>\n"
|
||||
"std::string foo;\n#include \"dir/bar.h\"\n",
|
||||
runIncludeFixer("// comment\n#include \"foo.h\"\nstd::string foo;\n"
|
||||
"#include \"dir/bar.h\"\n"));
|
||||
|
||||
EXPECT_EQ("#include \"foo.h\"\n#include <string>\nstd::string foo;\n",
|
||||
runIncludeFixer("#include \"foo.h\"\nstd::string foo;\n"));
|
||||
|
|
Loading…
Reference in New Issue