Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions tests/TestSuite.hs
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ suite = do
testEstablishConnection
testParsingJson1
testParsingJson2
testFetching

describe "Corner cases in protocol compliance" $ do
testSendBodyFor PUT
Expand Down Expand Up @@ -693,6 +694,13 @@ testParsingJson2 =

assertEqual "Incorrect response" "Japan" (gLabel x)
assertEqual "Data not parsed as expected" 2008 (fst $ last $ gData x)

testFetching =
it "plain GET, shouldn't crash" $ do
let url = "http://highpointdental.com.au"
x <- get url concatHandler
assertEqual "a" "a" "context"

-- L.putStr $ encodePretty x


Expand Down