1
1
mirror of https://github.com/github/semantic.git synced 2024-11-28 01:47:01 +03:00

Correct a test.

This commit is contained in:
Rob Rix 2017-05-03 09:39:19 -04:00
parent 3ff041adcd
commit bfd55c49c9

View File

@ -38,7 +38,7 @@ spec = do
describe "source" $ do
it "produces the nodes source" $
assignAll source (Source "hi") [ Rose (rec Red 0 2) [] ] `shouldBe` Result [] (Just "hi")
assign source (Source "hi") (Rose (rec Red 0 2) []) `shouldBe` Result [] (Just "hi")
it "advances past the current node" $
fst <$> runAssignment source (startingState "hi" [ Rose (rec Red 0 2) [] ]) `shouldBe` Result [] (Just (AssignmentState 2 (Info.SourcePos 1 3) (Source "") []))