[clang-format] Add AlwaysBreakBeforeMultilineString tests

Summary: Followup to D47393.

Reviewers: stephanemoore

Reviewed By: stephanemoore

Subscribers: benhamilton, cfe-commits

Differential Revision: https://reviews.llvm.org/D48432

llvm-svn: 335338
This commit is contained in:
Jacek Olesiak 2018-06-22 11:57:55 +00:00
parent c9c0ccc8a9
commit 2b772c1136
1 changed files with 9 additions and 0 deletions

View File

@ -1227,6 +1227,15 @@ TEST_F(FormatTestObjC, AlwaysBreakBeforeMultilineStrings) {
" @\"cccc\");");
verifyFormat("aaaa(qqq, @\"bbbb\"\n"
" @\"cccc\");");
verifyFormat("[aaaa qqqq:@\"bbbb\"\n"
" @\"cccc\"];");
verifyFormat("aaaa = [aaaa qqqq:@\"bbbb\"\n"
" @\"cccc\"];");
verifyFormat("[aaaa qqqq:@\"bbbb\"\n"
" @\"cccc\"\n"
" rr:42\n"
" ssssss:@\"ee\"\n"
" @\"fffff\"];");
}
} // end namespace