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