forked from qt-creator/qt-creator
UnitTest: Strip the carriage returns in IsSourceRangeWithText
The source code can be multi line which would contains end lines. Windows endline contains '\r' which are not present under unix. To unify the test we simply remove the 'r'. Change-Id: Icf78b5188c9a4801ec13e455a49a069b20c64e97 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -60,7 +60,7 @@ MATCHER_P5(IsSourceRangeWithText, startLine, startColumn, endLine, endColumn, te
|
||||
&& arg.start().column() == uint(startColumn)
|
||||
&& arg.end().line() == uint(endLine)
|
||||
&& arg.end().column() == uint(endColumn)
|
||||
&& arg.text() == text;
|
||||
&& arg.text().toCarriageReturnsStripped() == text;
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user