mirror of
https://github.com/github/semantic.git
synced 2024-12-26 16:33:03 +03:00
Test not appending onto closed rows over strings.
This commit is contained in:
parent
8c71fff97a
commit
c643f2ed58
@ -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)) $
|
||||
|
Loading…
Reference in New Issue
Block a user