Skip to content

Commit

Permalink
Add failing test for #127
Browse files Browse the repository at this point in the history
  • Loading branch information
sol committed Nov 2, 2014
1 parent 787580a commit 083e18a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/Web/ScottySpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ spec = do
it "returns POST parameter with given name" $ do
request "POST" "/search" [("Content-Type","application/x-www-form-urlencoded")] "query=haskell" `shouldRespondWith` "haskell"

it "handles newline normalization as per the HTML 4.01 Specification" $ do
-- see http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.1
request "POST" "/search" [("Content-Type","application/x-www-form-urlencoded")] "query=foo%0D%0Abar" `shouldRespondWith` "foo\nbar"

describe "text" $ do
let modernGreekText :: IsString a => a
modernGreekText = "νέα ελληνικά"
Expand Down

0 comments on commit 083e18a

Please sign in to comment.