1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 23:42:31 +03:00

Adjoining onto no rows is also identity.

This commit is contained in:
Rob Rix 2015-12-11 00:24:37 -05:00
parent de75e838d0
commit a71a4d2e36

View File

@ -121,6 +121,9 @@ main = hspec $ do
prop "is identity on top of empty rows" $
\ a -> adjoin2 [ mempty ] a == [ a ]
prop "is identity on top of no rows" $
\ a -> adjoin2 [] a == [ a ]
it "appends appends HTML onto incomplete lines" $
adjoin2 [ rightRowText "[" ] (rightRowText "a") `shouldBe`
[ rightRow [ Text "[", Text "a" ] ]