Skip to content

Instantly share code, notes, and snippets.

@etorreborre
Created May 12, 2019 10:36
Show Gist options
  • Select an option

  • Save etorreborre/2a038c0544ac239c32aa78dbecf0c187 to your computer and use it in GitHub Desktop.

Select an option

Save etorreborre/2a038c0544ac239c32aa78dbecf0c187 to your computer and use it in GitHub Desktop.
propertyt-statet
test_with_better_department_name =
prop "a department must have a short capitalized name" $ runS generators $ do
setSmallCompany
setDepartmentName
company <- forallS @Company
let Just d = head $ departments company
(T.length (departmentName d) <= 5) === True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment