1
1
mirror of https://github.com/github/semantic.git synced 2024-12-01 00:33:59 +03:00

Correct precedence.

This commit is contained in:
Rob Rix 2017-09-01 11:51:18 -04:00
parent 5366bfff3c
commit bad1c832f0

View File

@ -149,7 +149,7 @@ spec = do
describe "catchError" $ do
it "catches failed committed choices" $
fst <$> runAssignment "A"
(symbol Green *> children red `catchError` \ _ -> OutError <$ location <*> source)
((symbol Green *> children red) `catchError` \ _ -> OutError <$ location <*> source)
(makeState [node Green 0 1 []])
`shouldBe`
Right (OutError "A")