summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2010-01-29 23:52:25 (GMT)
committerKevin Smith <git@kismith.co.uk>2010-01-29 23:52:25 (GMT)
commit01f868c4040234ed4b1ee7d0e08377a89b928b77 (patch)
tree650b42976a38e18d61a58d1b3a7c7ef509472237 /SwifTools/UnitTest
parented8990c5ee4f54d63e88b6bad28356d0c032a8c3 (diff)
downloadswift-contrib-01f868c4040234ed4b1ee7d0e08377a89b928b77.zip
swift-contrib-01f868c4040234ed4b1ee7d0e08377a89b928b77.tar.bz2
Fix chatwindow unit tests
Diffstat (limited to 'SwifTools/UnitTest')
-rw-r--r--SwifTools/UnitTest/LinkifyTest.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/SwifTools/UnitTest/LinkifyTest.cpp b/SwifTools/UnitTest/LinkifyTest.cpp
index 6c5fb15..e952585 100644
--- a/SwifTools/UnitTest/LinkifyTest.cpp
+++ b/SwifTools/UnitTest/LinkifyTest.cpp
@@ -91,6 +91,14 @@ class LinkifyTest : public CppUnit::TestFixture {
String("<a href=\"http://foo.com/bar+baz\">http://foo.com/bar+baz</a>"),
result);
}
+
+ void testLinkify_Tilde() {
+ String result = Linkify::linkify("http://foo.com/~kev/");
+
+ CPPUNIT_ASSERT_EQUAL(
+ String("<a href=\"http://foo.com/~kev/\">http://foo.com/~kev/</a>"),
+ result);
+ }
};
CPPUNIT_TEST_SUITE_REGISTRATION(LinkifyTest);