@@ -78,17 +78,17 @@ void TestSyntax::testLoadValidSyntaxRules()
78
78
79
79
// Check the first rule
80
80
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 );
85
85
86
86
// Check the second rule
87
87
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 );
92
92
}
93
93
94
94
void TestSyntax::testLoadMissingKeywords ()
@@ -102,4 +102,4 @@ void TestSyntax::testLoadMissingKeywords()
102
102
}
103
103
104
104
QTEST_MAIN (TestSyntax)
105
- #include " test_syntax.moc"
105
+ #include " test_syntax.moc"
0 commit comments