1
1
mirror of https://github.com/github/semantic.git synced 2024-12-25 07:55:12 +03:00

Test that we preserve child lines in the output.

This commit is contained in:
Rob Rix 2016-05-26 11:39:24 -04:00
parent 31519322bc
commit 8313074e50

View File

@ -59,7 +59,11 @@ spec = parallel $ do
sort (nub (keysOfAlignedChildren (alignBranch id children ranges))) `shouldBe` sort (nub (catMaybes (branchElementKey <$> elements)))
prop "covers every line of every input child" $
pendingWith "TBD"
\ elements -> let (_, children, ranges) = toAlignBranchInputs elements in
sort (keysOfAlignedChildren (alignBranch id children ranges)) `shouldBe` sort (do
(key, lines) <- children
line <- lines
these id id (++) . runJoin . ([key] <$) $ line)
describe "alignDiff" $ do
it "aligns identical branches on a single line" $