mirror of
https://github.com/github/semantic.git
synced 2024-12-29 01:42:43 +03:00
Correct a test.
This commit is contained in:
parent
3ff041adcd
commit
bfd55c49c9
@ -38,7 +38,7 @@ spec = do
|
||||
|
||||
describe "source" $ do
|
||||
it "produces the node’s 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 "") []))
|
||||
|
Loading…
Reference in New Issue
Block a user