summaryrefslogtreecommitdiffstats
path: root/libtdepim/tests/test_kregexp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libtdepim/tests/test_kregexp.cpp')
-rw-r--r--libtdepim/tests/test_kregexp.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/libtdepim/tests/test_kregexp.cpp b/libtdepim/tests/test_kregexp.cpp
new file mode 100644
index 000000000..511687d07
--- /dev/null
+++ b/libtdepim/tests/test_kregexp.cpp
@@ -0,0 +1,16 @@
+#include <kregexp3.h>
+#include <kdebug.h>
+#include <kinstance.h>
+
+int
+main()
+{
+ KInstance app("# ");
+
+ // test for http://bugs.kde.org/show_bug.cgi?id=54886
+ KRegExp3 reg("^");
+ TQString res = reg.replace(TQString::tqfromLatin1("Fun stuff"),
+ TQString::tqfromLatin1("[fun] "));
+ kdDebug() << res << endl;
+
+}