6 main = sequence_ (map do_test tests)
8 base = fromJust (parseURI "http://a/b/c/d;p?q")
10 do_test test = case parseURI test of
11 Nothing -> error ("no parse: " ++ test)
12 Just uri -> putStr (show (fromJust (uri `relativeTo` base)) ++ "\n")
37 -- "../../../g" -- should fail
38 -- "../../../../g" -- should fail