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:
parent
31519322bc
commit
8313074e50
@ -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" $
|
||||
|
Loading…
Reference in New Issue
Block a user