Skip to content

Commit 7c6237c

Browse files
authored
Update ConfigParseTest.cpp
1 parent ef2548f commit 7c6237c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

clang/unittests/Format/ConfigParseTest.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1443,7 +1443,8 @@ TEST(ConfigParseTest, GetStyleOfFile) {
14431443
// Test 9.8: use inheritance from a file without BasedOnStyle
14441444
ASSERT_TRUE(FS.addFile(
14451445
"/e/withoutbase/.clang-format", 0,
1446-
llvm::MemoryBuffer::getMemBuffer("BracedInitializerIndentWidth: 2")));
1446+
llvm::MemoryBuffer::getMemBuffer("BracedInitializerIndentWidth: 2\n"
1447+
"ColumnLimit: 123")));
14471448
ASSERT_TRUE(
14481449
FS.addFile("/e/withoutbase/sub/.clang-format", 0,
14491450
llvm::MemoryBuffer::getMemBuffer(
@@ -1454,6 +1455,7 @@ TEST(ConfigParseTest, GetStyleOfFile) {
14541455
ASSERT_EQ(*Style9, [] {
14551456
auto Style = getLLVMStyle();
14561457
Style.BracedInitializerIndentWidth = 2;
1458+
Style.ColumnLimit = 123;
14571459
return Style;
14581460
}());
14591461

@@ -1462,6 +1464,7 @@ TEST(ConfigParseTest, GetStyleOfFile) {
14621464
ASSERT_EQ(*Style9, [] {
14631465
auto Style = getLLVMStyle();
14641466
Style.BracedInitializerIndentWidth = 2;
1467+
Style.ColumnLimit = 123;
14651468
Style.IndentWidth = 7;
14661469
return Style;
14671470
}());

0 commit comments

Comments
 (0)