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:
parent
a549354030
commit
e49715dd86
@ -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`
|
||||
|
Loading…
Reference in New Issue
Block a user