1
Fork 0

fix bug in parsing default as all instead of distinct for set operations

This commit is contained in:
Jake Wheat 2014-04-15 13:47:34 +03:00
parent 4989f5251b
commit 8b1fa81de7
4 changed files with 30 additions and 11 deletions
tools/Language/SQL/SimpleSQL

View file

@ -79,9 +79,12 @@ order on the generated documentation.
> let str' = pp got
> let egot' = parser "" Nothing str'
> case egot' of
> Left e' -> H.assertFailure $ "pp roundtrip "
> Left e' -> H.assertFailure $ "pp roundtrip"
> ++ "\n" ++ str'
> ++ peFormattedError e'
> Right got' -> H.assertEqual "pp roundtrip" expected got'
> Right got' -> H.assertEqual
> ("pp roundtrip" ++ "\n" ++ str')
> expected got'
> toPTest :: (Eq a, Show a) =>
> (String -> Maybe (Int,Int) -> String -> Either ParseError a)
@ -97,5 +100,6 @@ order on the generated documentation.
> let egot' = parser "" Nothing str'
> case egot' of
> Left e' -> H.assertFailure $ "pp roundtrip "
> ++ "\n" ++ str' ++ "\n"
> ++ peFormattedError e'
> Right _got' -> return ()