Tests build again

This commit is contained in:
Michael Snoyman 2010-08-09 17:53:33 +03:00
parent 2f3a0effff
commit 90a56784eb
2 changed files with 5 additions and 5 deletions

View File

@ -245,8 +245,8 @@ propExt s =
caseTypeByExt :: Assertion
caseTypeByExt = do
typeJavascript @=? typeByExt (ext "foo.js")
typeHtml @=? typeByExt (ext "foo.html")
Just typeJavascript @=? lookup (ext "foo.js") typeByExt
Just typeHtml @=? lookup (ext "foo.html") typeByExt
#endif
-- | Format a 'UTCTime' in W3 format; useful for setting cookies.

View File

@ -130,10 +130,10 @@ caseSimpleOutput = do
let j = do
jsonMap
[ ("foo" , jsonList
[ jsonScalar $ fromByteString "bar"
, jsonScalar $ fromByteString "baz"
[ jsonScalar "bar"
, jsonScalar "baz"
])
]
"{\"foo\":[\"bar\",\"baz\"]}" @=? unpack (renderHtml $ unJson j)
"{\"foo\":[\"bar\",\"baz\"]}" @=? unpack (toLazyByteString $ unJson j)
#endif