1
1
mirror of https://github.com/github/semantic.git synced 2024-12-27 08:54:14 +03:00

Test not appending onto closed rows over strings.

This commit is contained in:
Rob Rix 2015-12-22 16:56:22 -05:00
parent 8c71fff97a
commit c643f2ed58

View File

@ -64,8 +64,8 @@ spec = do
adjoinRowsBy openString openString [ a ] b `shouldBe` [ Row (Line $ a1 ++ a2) (Line $ b1 ++ b2) ]
prop "does not append onto closed rows" $
forAll ((arbitrary `suchThat` isClosedBy openElement) >>= \ a -> (,) a <$> (arbitrary `suchThat` isClosedBy openElement)) $
\ (a, b) -> adjoinRowsBy openElement openElement [ a ] b `shouldBe` [ b, a ]
forAll ((arbitrary `suchThat` isClosedBy openString) >>= \ a -> (,) a <$> (arbitrary `suchThat` isClosedBy openString)) $
\ (a, b) -> adjoinRowsBy openString openString [ a ] b `shouldBe` [ b, a ]
prop "does not promote elements through empty lines onto closed lines" $
forAll ((arbitrary `suchThat` isClosedBy openElement) >>= \ a -> (,) a <$> (arbitrary `suchThat` isClosedBy openElement)) $