Skip to content

Commit dfb5071

Browse files
committedJan 25, 2016
fix a problem in Test.Smtlib caused by overlapping string representaion of CmdResponse
1 parent 9be7813 commit dfb5071

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed
 

‎test/Test/Smtlib.hs

+3-4
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,9 @@ prop_parseInfoFlags = forAll arbitrary $ \a ->
6363

6464
prop_parseCmdResult :: Property
6565
prop_parseCmdResult = forAll arbitrary $ \(a :: CmdResponse) ->
66-
let b = showSL a
67-
in case parse parseCmdResult "" b of
68-
Left err -> error (show err)
69-
Right a' -> showSL a' == b
66+
case parse parseCmdResult "" (showSL a) of
67+
Left err -> error (show err)
68+
Right a' -> parse parseCmdResult "" (showSL a') == Right a'
7069

7170
prop_parseGenResponse :: Property
7271
prop_parseGenResponse = forAll arbitrary $ \a ->

0 commit comments

Comments
 (0)
Please sign in to comment.