Skip to content

Commit 62022c1

Browse files
allightcopybara-github
authored andcommitted
Ensure CppTranspilerTest.DepHeadersIncluded doesn't trip check_cpp_includes.py lint check.
This was checking includes are generated in a way that confused that lint check PiperOrigin-RevId: 809998680
1 parent 422c1ad commit 62022c1

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

xls/dslx/cpp_transpiler/cpp_transpiler_test.cc

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -448,15 +448,11 @@ type Foo = u32;
448448
/*additional_include_headers=*/
449449
{"path/to/some_types.h", "path/to/other_types.h"},
450450
"/tmp/fake_path.h"));
451-
EXPECT_THAT(result.header, HasSubstr(R"(
452-
#include "path/to/some_types.h"
453-
#include "path/to/other_types.h"
454-
)"));
455-
EXPECT_THAT(result.source, HasSubstr(R"(
456-
#include "/tmp/fake_path.h"
457-
#include "path/to/some_types.h"
458-
#include "path/to/other_types.h"
459-
)"));
451+
EXPECT_THAT(result.header, HasSubstr("#include \"path/to/some_types.h\"\n"
452+
"#include \"path/to/other_types.h\"\n"));
453+
EXPECT_THAT(result.source, HasSubstr("#include \"/tmp/fake_path.h\"\n"
454+
"#include \"path/to/some_types.h\"\n"
455+
"#include \"path/to/other_types.h\"\n"));
460456
}
461457

462458
} // namespace

0 commit comments

Comments
 (0)