MCPcopy Create free account
hub / github.com/IChooseYou/Reclass / testStringColor

Method testStringColor

tests/test_rendered_view.cpp:246–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244 // ── Verify string color is VS Code orange ──
245
246 void testStringColor() {
247 QsciScintilla sci;
248 setupRenderedSci(&sci);
249
250 auto* lexer = qobject_cast<QsciLexerCPP*>(sci.lexer());
251 QVERIFY(lexer != nullptr);
252
253 QCOMPARE(lexer->color(QsciLexerCPP::DoubleQuotedString), QColor("#ce9178"));
254 QCOMPARE(lexer->color(QsciLexerCPP::SingleQuotedString), QColor("#ce9178"));
255 }
256
257 // ── Verify preprocessor color is VS Code purple ──
258

Callers

nothing calls this directly

Calls 1

setupRenderedSciFunction · 0.85

Tested by

no test coverage detected