1
1
mirror of https://github.com/github/semantic.git synced 2024-12-01 09:15:01 +03:00

Stub in a property test of appending onto open rows.

This commit is contained in:
Rob Rix 2015-12-18 12:11:01 -05:00
parent 013ed0e227
commit a549354030

View File

@ -122,6 +122,9 @@ spec = do
prop "is identity on top of no rows" $
\ a -> adjoin2 [] a == [ a ]
prop "appends onto open lines" $
const True <$> ((arbitrary :: Gen Row) `suchThat` isOpen)
it "appends elements onto incomplete lines" $
adjoin2 [ rightRowText "[" ] (rightRowText "a") `shouldBe`
[ rightRow [ Text "[", Text "a" ] ]