{-# LANGUAGE OverloadedStrings #-}
module Hakyll.Web.Urls.Relativize.Tests
( tests
) where
import Test.Framework
import Test.HUnit hiding (Test)
import Hakyll.Web.Urls.Relativize
import TestSuite.Util
tests :: [Test]
tests = fromAssertions "relativizeUrls"
[ "bar" @=?
relativizeUrls ".." "bar"
, "" @=?
relativizeUrls "../.." ""
, "Haskell" @=?
relativizeUrls "../.." "Haskell"
, "Haskell" @=?
relativizeUrls "../.." "Haskell"
, "" @=?
relativizeUrls "../.."
""
]