1
1
mirror of https://github.com/github/semantic.git synced 2024-12-29 18:06:14 +03:00

Use forAll to stub in the test.

This commit is contained in:
Rob Rix 2015-12-18 12:28:57 -05:00
parent a549354030
commit e49715dd86

View File

@ -122,8 +122,8 @@ 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)
prop "appends onto open rows" $ forAll ((arbitrary :: Gen Row) `suchThat` isOpen) $
\ a -> True
it "appends elements onto incomplete lines" $
adjoin2 [ rightRowText "[" ] (rightRowText "a") `shouldBe`