Skip to content

Commit

Permalink
Add a test for ellipsis that isn't whole string
Browse files Browse the repository at this point in the history
There was a concern that the code didn't handle this case correctly, so
added a test to allay that concern.
  • Loading branch information
jbytheway committed Jan 1, 2020
1 parent 2169375 commit 2a317e3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/clang-tidy-plugin/test/text-style.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ static void bar()
foo( "..." );
// CHECK-MESSAGES: [[@LINE-1]]:11: warning: ellipsis preferred over three dots.
// CHECK-FIXES: foo( "\u2026" );
foo( "foo..." );
// CHECK-MESSAGES: [[@LINE-1]]:14: warning: ellipsis preferred over three dots.
// CHECK-FIXES: foo( "foo\u2026" );
foo( "Three. \nTwo. One." );
// CHECK-MESSAGES: [[@LINE-1]]:17: warning: unnecessary spaces at end of line.
// CHECK-FIXES: foo( "Three.\nTwo. One." );
Expand Down

0 comments on commit 2a317e3

Please sign in to comment.