Slide 9
Slide 9 text
An Origin Story Discovering Superpowers
Encode examples as re-runnable tests
describe "Lib.reverse" $ do
it "returns [5,4,3,2,1] given [1,2,3,4,5]" $ do
reverse [1,2,3,4,5] `shouldBe` [5,4,3,2,1]
it "returns empty list given empty list" $ do
reverse [] `shouldBe` []
Susan Potter Thinking in Properties 2020-08-01 5 / 41