summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-05-23 23:42:53 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-05-23 23:42:53 +0000
commitb87565e3441f25be17d35dac86f68661a7ec3bbd (patch)
treeb4c3fe2a9bd8318690c0045c90cc976a9e9366c4 /src
parent2695c489cc908ca43b49ea4428a259af781ed952 (diff)
Add interesting test case
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9799 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/testsuite.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/testsuite.cpp b/src/testsuite.cpp
index 1cee7500c..71ace375e 100644
--- a/src/testsuite.cpp
+++ b/src/testsuite.cpp
@@ -56,6 +56,7 @@ TestSuite::TestSuite(InspIRCd* Instance) : ServerInstance(Instance)
cout << "(3) Unload a module\n";
cout << "(4) Threading tests\n";
cout << "(5) Wildcard and CIDR tests\n";
+ cout << "(6) irc::string -> std::string dynamic cast\n";
cout << endl << "(X) Exit test suite\n";
@@ -86,6 +87,14 @@ TestSuite::TestSuite(InspIRCd* Instance) : ServerInstance(Instance)
case '5':
cout << (DoWildTests() ? "\nSUCCESS!\n" : "\nFAILURE\n");
break;
+ case '6':
+ {
+ std::string* a = new std::string("test");
+ irc::string* b = (irc::string)a;
+ cout << "std::string value: '" << *a << "' irc::string value: '" << *b << "'" << endl;
+ delete a;
+ }
+ break;
case 'X':
return;
break;