summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/Hakyll/Web/Urls/Tests.hs6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/Hakyll/Web/Urls/Tests.hs b/tests/Hakyll/Web/Urls/Tests.hs
index db7a10b..d7bd3a6 100644
--- a/tests/Hakyll/Web/Urls/Tests.hs
+++ b/tests/Hakyll/Web/Urls/Tests.hs
@@ -17,6 +17,12 @@ tests = concat
withUrls (map toUpper) "<a href=\"foo\">bar</a>"
, "<img src=\"OH BAR\">" @=?
withUrls (map toUpper) "<img src=\"oh bar\">"
+
+ -- Test escaping
+ , "<script>\"sup\"</script>" @=?
+ withUrls id "<script>\"sup\"</script>"
+ , "<code>&lt;stdio&gt;</code>" @=?
+ withUrls id "<code>&lt;stdio&gt;</code>"
]
, fromAssertions "toUrl"
[ "/foo/bar.html" @=? toUrl "foo/bar.html"