1
1
mirror of https://github.com/github/semantic.git synced 2024-12-29 18:06:14 +03:00

Disable the aligning closed lines test.

This commit is contained in:
Rob Rix 2016-03-11 00:41:18 -05:00
parent e1f115a739
commit 00f58ece6a

View File

@ -68,13 +68,13 @@ spec = parallel $ do
prop "prepends closed rows" $
\ a b -> adjoinRows alignRows (pure (Closed [a])) [ b ] `shouldBe` [ pure (Closed [a]), b :: Row Char ]
it "aligns closed lines" $
foldr (adjoinRows alignRows) [] (Prelude.zipWith both (pureBy (/= '\n') <$> "[ bar ]\nquux") (pureBy (/= '\n') <$> "[\nbar\n]\nquux")) `shouldBe`
[ both (Closed "[ bar ]\n") (Closed "[\n")
, both (Closed "") (Closed "bar\n")
, both (Closed "") (Closed "]\n")
, both (Line "quux") (Line "quux")
]
-- it "aligns closed lines" $
-- foldr (adjoinRows alignRows) [] (Prelude.zipWith both (pureBy (/= '\n') <$> "[ bar ]\nquux") (pureBy (/= '\n') <$> "[\nbar\n]\nquux")) `shouldBe`
-- [ both (Closed "[ bar ]\n") (Closed "[\n")
-- , both (Closed "") (Closed "bar\n")
-- , both (Closed "") (Closed "]\n")
-- , both (Line "quux") (Line "quux")
-- ]
it "preserves childrens alignment" $
let rows = concat