Skip to content

Commit 2431694

Browse files
cushonronshapiro
authored andcommitted
Duplicate an implementation comment to explain newline handling in ImportOrderedTest
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=234800989
1 parent 8ef82d9 commit 2431694

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/src/test/java/com/google/googlejavaformat/java/ImportOrdererTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,8 @@ public static Collection<Object[]> parameters() {
415415
Joiner.on('\n').join(input) + '\n', //
416416
Joiner.on('\n').join(output) + '\n',
417417
};
418+
// If a line ends with \ then we remove the \ and don't append a \n. That allows us to check
419+
// some parsing edge cases.
418420
parameters[0] = parameters[0].replace("\\\n", "");
419421
builder.add(parameters);
420422
}

0 commit comments

Comments
 (0)