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:
parent
de75e838d0
commit
a71a4d2e36
@ -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" ] ]
|
||||
|
Loading…
Reference in New Issue
Block a user