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

Correct the spec.

This commit is contained in:
Rob Rix 2017-05-17 15:35:15 -04:00
parent d0f42f11aa
commit 516daa7e4f

View File

@ -52,7 +52,7 @@ spec = do
() <$ runAssignment (children red) (makeState "a" [Rose (rec Blue 0 1) [Rose (rec Red 0 1) []]]) `shouldBe` Result [] (Just ())
it "does not match if its subrule does not match" $
(runAssignment (children red) (makeState "a" [Rose (rec Blue 0 1) [Rose (rec Green 0 1) []]])) `shouldBe` Result [ Error (Info.SourcePos 1 1) [Red] (Just Green) ] Nothing
(runAssignment (children red) (makeState "a" [Rose (rec Blue 0 1) [Rose (rec Green 0 1) []]])) `shouldBe` Result [ Error (Info.SourcePos 1 1) (UnexpectedSymbol [Red] Green) ] Nothing
it "matches nested children" $ do
runAssignment