Skip to content

Commit 1a30bde

Browse files
authored
reverse QCOMPARE_H changes for QCOMPARE_EQ
1 parent 6eaa797 commit 1a30bde

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

tests/test_syntax.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -78,17 +78,17 @@ void TestSyntax::testLoadValidSyntaxRules()
7878

7979
// Check the first rule
8080
const auto &rule1 = syntax->m_syntaxRules[0];
81-
QCOMPARE_H(rule1.m_pattern.pattern(), "\\bint\\b");
82-
QCOMPARE_H(rule1.m_format.foreground().color(), QColor("#ff0000"));
83-
QCOMPARE_H(rule1.m_format.fontWeight(), QFont::Bold);
84-
QCOMPARE_H(rule1.m_format.fontItalic(), true);
81+
QCOMPARE_EQ(rule1.m_pattern.pattern(), "\\bint\\b");
82+
QCOMPARE_EQ(rule1.m_format.foreground().color(), QColor("#ff0000"));
83+
QCOMPARE_EQ(rule1.m_format.fontWeight(), QFont::Bold);
84+
QCOMPARE_EQ(rule1.m_format.fontItalic(), true);
8585

8686
// Check the second rule
8787
const auto &rule2 = syntax->m_syntaxRules[1];
88-
QCOMPARE_H(rule2.m_pattern.pattern(), "\\bfloat\\b");
89-
QCOMPARE_H(rule2.m_format.foreground().color(), QColor("#00ff00"));
90-
QCOMPARE_H(rule2.m_format.fontWeight(), QFont::Normal);
91-
QCOMPARE_H(rule2.m_format.fontItalic(), true);
88+
QCOMPARE_EQ(rule2.m_pattern.pattern(), "\\bfloat\\b");
89+
QCOMPARE_EQ(rule2.m_format.foreground().color(), QColor("#00ff00"));
90+
QCOMPARE_EQ(rule2.m_format.fontWeight(), QFont::Normal);
91+
QCOMPARE_EQ(rule2.m_format.fontItalic(), true);
9292
}
9393

9494
void TestSyntax::testLoadMissingKeywords()
@@ -102,4 +102,4 @@ void TestSyntax::testLoadMissingKeywords()
102102
}
103103

104104
QTEST_MAIN(TestSyntax)
105-
#include "test_syntax.moc"
105+
#include "test_syntax.moc"

0 commit comments

Comments
 (0)