Skip to content

Commit e231f0d

Browse files
authored
[Fix] fix QCOMPARE_EQ to QCOMPARE_NE
1 parent 1a30bde commit e231f0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_syntax.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ void TestSyntax::testLoadValidSyntaxRules()
8181
QCOMPARE_EQ(rule1.m_pattern.pattern(), "\\bint\\b");
8282
QCOMPARE_EQ(rule1.m_format.foreground().color(), QColor("#ff0000"));
8383
QCOMPARE_EQ(rule1.m_format.fontWeight(), QFont::Bold);
84-
QCOMPARE_EQ(rule1.m_format.fontItalic(), true);
84+
QCOMPARE_NE(rule1.m_format.fontItalic(), true);
8585

8686
// Check the second rule
8787
const auto &rule2 = syntax->m_syntaxRules[1];

0 commit comments

Comments
 (0)