mirror of
https://github.com/github/semantic.git
synced 2024-11-28 18:23:44 +03:00
Stub in a property test of appending onto open rows.
This commit is contained in:
parent
013ed0e227
commit
a549354030
@ -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" ] ]
|
||||
|
Loading…
Reference in New Issue
Block a user