Skip to content

Commit

Permalink
Fixes issue HaskVan#8: testReadingLine doesn't work.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nate Cornell committed Feb 26, 2016
1 parent d621df9 commit 8cde7aa
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions test/BasicIO.hs
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,19 @@ failIO fnName =

testReadingChar :: Spec
testReadingChar = it "getChar" $ do
putStrLn "Write: \"a\" to pass this test: "
-- NOTE: replace 'failIO' with the actual function
result <- failIO "getChar"
assertEqual ""
'a'
result
putStrLn "Write: \"a\" to pass this test: "
-- NOTE: replace 'failIO' with the actual function
result <- failIO "getChar"
assertEqual ""
'a'
result

testReadingLine :: Spec
testReadingLine = it "getLine" $ do
putStrLn "Write: \"burrito\" to pass this test: "
-- NOTE: replace 'failIO' with the actual function
result <- failIO "getLine"
assertEqual "Write: \"burrito\" to pass this test"
assertEqual ""
"burrito"
result

0 comments on commit 8cde7aa

Please sign in to comment.