mirror of
https://github.com/github/semantic.git
synced 2024-12-28 17:32:05 +03:00
Rename & correct a catchError test.
This commit is contained in:
parent
de318561dd
commit
70cfa6e070
@ -147,9 +147,9 @@ spec = do
|
||||
fst <$> runAssignment "magenta" eof (makeState [ node Magenta 0 7 [] ] :: State [] Grammar) `shouldBe` Right ()
|
||||
|
||||
describe "catchError" $ do
|
||||
it "handler that always matches" $
|
||||
it "applies its handler to failed committed choices" $
|
||||
fst <$> runAssignment "A"
|
||||
(red `catchError` (\ _ -> OutError <$ location <*> source))
|
||||
((symbol Green *> children red) `catchError` (\ _ -> OutError <$ location <*> source))
|
||||
(makeState [node Green 0 1 []])
|
||||
`shouldBe`
|
||||
Right (OutError "A")
|
||||
|
Loading…
Reference in New Issue
Block a user