@@ -2668,21 +2668,21 @@ class TestOther : public TestFixture {
26682668 " b5 = a % 5 >= 5;\n "
26692669 " return a % 5 > 5;\n "
26702670 " }" );
2671- ASSERT_EQUALS (" [test.cpp:2]: (warning) Comparision of modulo result is predetermined, because it is always less than 5.\n "
2672- " [test.cpp:3]: (warning) Comparision of modulo result is predetermined, because it is always less than 5.\n "
2673- " [test.cpp:4]: (warning) Comparision of modulo result is predetermined, because it is always less than 5.\n "
2674- " [test.cpp:5]: (warning) Comparision of modulo result is predetermined, because it is always less than 5.\n "
2675- " [test.cpp:6]: (warning) Comparision of modulo result is predetermined, because it is always less than 5.\n "
2676- " [test.cpp:7]: (warning) Comparision of modulo result is predetermined, because it is always less than 5.\n " , errout.str ());
2671+ ASSERT_EQUALS (" [test.cpp:2]: (warning) Comparison of modulo result is predetermined, because it is always less than 5.\n "
2672+ " [test.cpp:3]: (warning) Comparison of modulo result is predetermined, because it is always less than 5.\n "
2673+ " [test.cpp:4]: (warning) Comparison of modulo result is predetermined, because it is always less than 5.\n "
2674+ " [test.cpp:5]: (warning) Comparison of modulo result is predetermined, because it is always less than 5.\n "
2675+ " [test.cpp:6]: (warning) Comparison of modulo result is predetermined, because it is always less than 5.\n "
2676+ " [test.cpp:7]: (warning) Comparison of modulo result is predetermined, because it is always less than 5.\n " , errout.str ());
26772677
26782678 check (" void f(bool& b1, bool& b2) {\n "
26792679 " b1 = bar() % 5 < 889;\n "
26802680 " if(x[593] % 5 <= 5)\n "
26812681 " b2 = x.a % 5 == 5;\n "
26822682 " }" );
2683- ASSERT_EQUALS (" [test.cpp:2]: (warning) Comparision of modulo result is predetermined, because it is always less than 5.\n "
2684- " [test.cpp:3]: (warning) Comparision of modulo result is predetermined, because it is always less than 5.\n "
2685- " [test.cpp:4]: (warning) Comparision of modulo result is predetermined, because it is always less than 5.\n " , errout.str ());
2683+ ASSERT_EQUALS (" [test.cpp:2]: (warning) Comparison of modulo result is predetermined, because it is always less than 5.\n "
2684+ " [test.cpp:3]: (warning) Comparison of modulo result is predetermined, because it is always less than 5.\n "
2685+ " [test.cpp:4]: (warning) Comparison of modulo result is predetermined, because it is always less than 5.\n " , errout.str ());
26862686 }
26872687
26882688 void incorrectLogicOperator1 () {
@@ -4196,7 +4196,7 @@ class TestOther : public TestFixture {
41964196 " std::cout << \" Equal\n\" "
41974197 " }"
41984198 " }" );
4199- ASSERT_EQUALS (" [test.cpp:4]: (warning) Unnecessary comparision of static strings.\n " , errout.str ());
4199+ ASSERT_EQUALS (" [test.cpp:4]: (warning) Unnecessary comparison of static strings.\n " , errout.str ());
42004200
42014201 check_preprocess_suppress (
42024202 " int main()\n "
@@ -4206,7 +4206,7 @@ class TestOther : public TestFixture {
42064206 " std::cout << \" Equal\n\" "
42074207 " }"
42084208 " }" );
4209- ASSERT_EQUALS (" [test.cpp:3]: (warning) Unnecessary comparision of static strings.\n " , errout.str ());
4209+ ASSERT_EQUALS (" [test.cpp:3]: (warning) Unnecessary comparison of static strings.\n " , errout.str ());
42104210
42114211 check_preprocess_suppress (
42124212 " #define MACRO \" Hotdog\"\n "
@@ -4217,7 +4217,7 @@ class TestOther : public TestFixture {
42174217 " std::cout << \" Equal\n\" "
42184218 " }"
42194219 " }" );
4220- ASSERT_EQUALS (" [test.cpp:4]: (warning) Unnecessary comparision of static strings.\n " , errout.str ());
4220+ ASSERT_EQUALS (" [test.cpp:4]: (warning) Unnecessary comparison of static strings.\n " , errout.str ());
42214221
42224222 check_preprocess_suppress (
42234223 " int main()\n "
@@ -4237,7 +4237,7 @@ class TestOther : public TestFixture {
42374237 " std::cout << \" Equal\n\" "
42384238 " }"
42394239 " }" );
4240- ASSERT_EQUALS (" [test.cpp:3]: (warning) Unnecessary comparision of static strings.\n " , errout.str ());
4240+ ASSERT_EQUALS (" [test.cpp:3]: (warning) Unnecessary comparison of static strings.\n " , errout.str ());
42414241
42424242 check (
42434243 " int foo(const char *buf)\n "
@@ -4255,15 +4255,15 @@ class TestOther : public TestFixture {
42554255 " std::cout << \" Equal\n\"\n "
42564256 " }\n "
42574257 " }" );
4258- ASSERT_EQUALS (" [test.cpp:2]: (warning) Unnecessary comparision of static strings.\n " , errout.str ());
4258+ ASSERT_EQUALS (" [test.cpp:2]: (warning) Unnecessary comparison of static strings.\n " , errout.str ());
42594259
42604260 check_preprocess_suppress (
42614261 " int main() {\n "
42624262 " if (\" str\" != \" str\" ) {\n "
42634263 " std::cout << \" Equal\n\"\n "
42644264 " }\n "
42654265 " }" );
4266- ASSERT_EQUALS (" [test.cpp:2]: (warning) Unnecessary comparision of static strings.\n " , errout.str ());
4266+ ASSERT_EQUALS (" [test.cpp:2]: (warning) Unnecessary comparison of static strings.\n " , errout.str ());
42674267
42684268 check_preprocess_suppress (
42694269 " int main() {\n "
0 commit comments