diagnostic/printer: Print newline at end of tests

Otherwise other test messages will continue from the same line as the pretty colors.

Bug: tint:282
Change-Id: I14727b4faa7bbca490523cdd6941fa09dc6b514a
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/31661
Reviewed-by: dan sinclair <dsinclair@chromium.org>
Commit-Queue: dan sinclair <dsinclair@chromium.org>
This commit is contained in:
Ben Clayton 2020-11-03 17:56:29 +00:00 committed by Commit Bot service account
parent f8bd106041
commit 06c892a6ec
1 changed files with 4 additions and 0 deletions

View File

@ -44,6 +44,7 @@ TEST_F(PrinterTest, WithColors) {
printer->write("Magenta", Style{Color::kMagenta, false});
printer->write("Cyan", Style{Color::kCyan, false});
printer->write("White", Style{Color::kWhite, false});
printf("\n");
}
TEST_F(PrinterTest, BoldWithColors) {
@ -57,6 +58,7 @@ TEST_F(PrinterTest, BoldWithColors) {
printer->write("Magenta", Style{Color::kMagenta, true});
printer->write("Cyan", Style{Color::kCyan, true});
printer->write("White", Style{Color::kWhite, true});
printf("\n");
}
TEST_F(PrinterTest, WithoutColors) {
@ -70,6 +72,7 @@ TEST_F(PrinterTest, WithoutColors) {
printer->write("Magenta", Style{Color::kMagenta, false});
printer->write("Cyan", Style{Color::kCyan, false});
printer->write("White", Style{Color::kWhite, false});
printf("\n");
}
TEST_F(PrinterTest, BoldWithoutColors) {
@ -83,6 +86,7 @@ TEST_F(PrinterTest, BoldWithoutColors) {
printer->write("Magenta", Style{Color::kMagenta, true});
printer->write("Cyan", Style{Color::kCyan, true});
printer->write("White", Style{Color::kWhite, true});
printf("\n");
}
} // namespace