diff options
author | Daniel Jasper <djasper@google.com> | 2013-03-01 18:11:39 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2013-03-01 18:11:39 +0000 |
commit | 516fb31d0536040334032e2af6b62cd6a5479d1c (patch) | |
tree | 63522ac85d3162dbef52c43d530912adb1113695 /unittests/Format/FormatTest.cpp | |
parent | 8a5d7cd100ebfb8c6b353ee4ad5b14ab4105d32d (diff) |
Remove whitespace at end of file.
This fixes the rest of llvm.org/PR15062.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176361 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Format/FormatTest.cpp')
-rw-r--r-- | unittests/Format/FormatTest.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp index 64de86a926..8cedfcedfd 100644 --- a/unittests/Format/FormatTest.cpp +++ b/unittests/Format/FormatTest.cpp @@ -166,6 +166,10 @@ TEST_F(FormatTest, OnlyGeneratesNecessaryReplacements) { TEST_F(FormatTest, RemovesTrailingWhitespaceOfFormattedLine) { EXPECT_EQ("int a;\nint b;", format("int a; \nint b;", 0, 0, getLLVMStyle())); + EXPECT_EQ("int a;", format("int a; ")); + EXPECT_EQ("int a;\n", format("int a; \n \n \n ")); + EXPECT_EQ("int a;\nint b; ", + format("int a; \nint b; ", 0, 0, getLLVMStyle())); } TEST_F(FormatTest, ReformatsMovedLines) { |