Skip to content

Commit

Permalink
fix a problem in Test.Smtlib caused by overlapping string representai…
Browse files Browse the repository at this point in the history
…on of CmdResponse
  • Loading branch information
msakai committed Jan 25, 2016
1 parent 9be7813 commit dfb5071
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/Test/Smtlib.hs
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,9 @@ prop_parseInfoFlags = forAll arbitrary $ \a ->

prop_parseCmdResult :: Property
prop_parseCmdResult = forAll arbitrary $ \(a :: CmdResponse) ->
let b = showSL a
in case parse parseCmdResult "" b of
Left err -> error (show err)
Right a' -> showSL a' == b
case parse parseCmdResult "" (showSL a) of
Left err -> error (show err)
Right a' -> parse parseCmdResult "" (showSL a') == Right a'

prop_parseGenResponse :: Property
prop_parseGenResponse = forAll arbitrary $ \a ->
Expand Down

0 comments on commit dfb5071

Please sign in to comment.