CppEditor: Fix test string

The raw string literal syntax is awesome.

Change-Id: Icd2677b40393eb66014755ef411473b236e6b19f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Christian Kandeler
2024-12-11 15:16:14 +01:00
parent c2bc0dd937
commit 9d2e78ebf1

View File

@@ -836,7 +836,7 @@ class CodeFoldingTest : public QObject
private slots:
void test()
{
const QByteArray content = R"(cpp // 0,0
const QByteArray content = R"cpp( // 0,0
int main() { // 1,0
#if 0 // 1,1
if (true) { // 1,1
@@ -852,7 +852,7 @@ int main() { // 1,0
#endif // 1,1
} // 0,0
// 0,0
cpp)";
)cpp";
TemporaryDir temporaryDir;
QVERIFY(temporaryDir.isValid());
CppTestDocument testDocument("file.cpp", content);