diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Hakyll/Web/Urls/Tests.hs | 6 |
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><stdio></code>" @=? + withUrls id "<code><stdio></code>" ] , fromAssertions "toUrl" [ "/foo/bar.html" @=? toUrl "foo/bar.html" |