]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/testsuite.cpp
detect if the process has an interactive session (if its started as a service, the...
[user/henk/code/inspircd.git] / src / testsuite.cpp
index 1cee7500c830b25ebaf792d61057b3582f900533..9ab30ff2d2b1a2c7805f74392593e8326ee421a9 100644 (file)
@@ -11,7 +11,7 @@
  * ---------------------------------------------------
  */
 
-/* $Core: libIRCDtestsuite */
+/* $Core */
 
 #include "inspircd.h"
 #include "testsuite.h"
@@ -59,7 +59,7 @@ TestSuite::TestSuite(InspIRCd* Instance) : ServerInstance(Instance)
 
                cout << endl << "(X) Exit test suite\n";
 
-               cout << "\nChoice: ";
+               cout << "\nChoices (Enter one or more options as a list then press enter, e.g. 15X): ";
                cin >> choice;
 
                if (!choice)
@@ -116,6 +116,9 @@ bool TestSuite::DoWildTests()
        WCTEST("foobar", "foo*");
        WCTEST("foobar", "*bar");
        WCTEST("foobar", "foo??r");
+       WCTEST("foobar.test", "fo?bar.*t");
+       WCTEST("foobar", "foobar");
+       WCTEST("foobar", "foo***bar");
 
        WCTESTNOT("foobar", "bazqux");
        WCTESTNOT("foobar", "*qux");
@@ -123,6 +126,10 @@ bool TestSuite::DoWildTests()
        WCTESTNOT("foobar", "baz*");
        WCTESTNOT("foobar", "foo???r");
        WCTESTNOT("foobar", "");
+       WCTESTNOT("", "foobar");
+       WCTESTNOT("OperServ", "O");
+       WCTESTNOT("O", "OperServ");
+       WCTESTNOT("foobar.tst", "fo?bar.*g");
 
        CIDRTEST("brain@1.2.3.4", "*@1.2.0.0/16");
        CIDRTEST("brain@1.2.3.4", "*@1.2.3.0/24");