Skip to content

Commit d503852

Browse files
committed
fixed test
1 parent 0ba9cf0 commit d503852

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/tests/test/tst_testmain.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class HuggleTest : public QObject
4848
void testCaseTalkPageParser0013() { testTalkPageWarningParser("0013", QDate(2014, 5, 13), 2); }
4949
void testCaseTalkPageParser0014() { testTalkPageWarningParser("0014", QDate(2014, 5, 13), 4); }
5050
void testCaseTalkPageParser0015() { testTalkPageWarningParser("0015", QDate(2014, 5, 16), 1); }
51-
//! Test if IsIP returns true for users who are IP's
51+
//! Test if IsAnon returns true for users who are IP's
5252
void testCaseWikiUserCheckIP();
5353
void testCaseTerminalParser();
5454
void testCaseConfigurationParse_YAML();
@@ -216,13 +216,13 @@ void HuggleTest::testCaseScores()
216216

217217
void HuggleTest::testCaseWikiUserCheckIP()
218218
{
219-
QVERIFY2(Huggle::WikiUser("10.0.0.1", hcfg->Project).IsIP(), "Invalid result for new WikiUser with username of 10.0.0.1, the result of IsIP() was false, but should have been true");
220-
QVERIFY2(Huggle::WikiUser("132.185.160.97", hcfg->Project).IsIP(), "Invalid result for new WikiUser with username of 132.185.160.97, the result of IsIP() was false, but should have been true");
221-
QVERIFY2(Huggle::WikiUser("150.30.0.56", hcfg->Project).IsIP(), "Invalid result for new WikiUser with username of 150.30.0.56, the result of IsIP() was false, but should have been true");
222-
QVERIFY2((Huggle::WikiUser("355.2.0.1", hcfg->Project).IsIP() == false), "Invalid result for new WikiUser with username of 355.2.0.1, the result of IsIP() was true, but should have been false");
223-
QVERIFY2((Huggle::WikiUser("Frank", hcfg->Project).IsIP() == false), "Invalid result for new WikiUser with username of IP, the result of IsIP() was true, but should have been false");
224-
QVERIFY2((Huggle::WikiUser("Joe", hcfg->Project).IsIP() == false), "Invalid result for new WikiUser with username of IP, the result of IsIP() was true, but should have been false");
225-
QVERIFY2((Huggle::WikiUser("2601:7:9380:135:1CCE:4CC0:7B6:8CD5", hcfg->Project).IsIP()), "Invalid result for new WikiUser with username of 2601:7:9380:135:1CCE:4CC0:7B6:8CD5, the result of IsIP() was false, but should have been true");
219+
QVERIFY2(Huggle::WikiUser("10.0.0.1", hcfg->Project).IsAnon(), "Invalid result for new WikiUser with username of 10.0.0.1, the result of IsAnon() was false, but should have been true");
220+
QVERIFY2(Huggle::WikiUser("132.185.160.97", hcfg->Project).IsAnon(), "Invalid result for new WikiUser with username of 132.185.160.97, the result of IsAnon() was false, but should have been true");
221+
QVERIFY2(Huggle::WikiUser("150.30.0.56", hcfg->Project).IsAnon(), "Invalid result for new WikiUser with username of 150.30.0.56, the result of IsAnon() was false, but should have been true");
222+
QVERIFY2((Huggle::WikiUser("355.2.0.1", hcfg->Project).IsAnon() == false), "Invalid result for new WikiUser with username of 355.2.0.1, the result of IsAnon() was true, but should have been false");
223+
QVERIFY2((Huggle::WikiUser("Frank", hcfg->Project).IsAnon() == false), "Invalid result for new WikiUser with username of IP, the result of IsAnon() was true, but should have been false");
224+
QVERIFY2((Huggle::WikiUser("Joe", hcfg->Project).IsAnon() == false), "Invalid result for new WikiUser with username of IP, the result of IsAnon() was true, but should have been false");
225+
QVERIFY2((Huggle::WikiUser("2601:7:9380:135:1CCE:4CC0:7B6:8CD5", hcfg->Project).IsAnon()), "Invalid result for new WikiUser with username of 2601:7:9380:135:1CCE:4CC0:7B6:8CD5, the result of IsAnon() was false, but should have been true");
226226
}
227227

228228
void HuggleTest::testCaseTerminalParser()

0 commit comments

Comments
 (0)