Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 464 Bytes

README.md

File metadata and controls

19 lines (15 loc) · 464 Bytes

QUANGO: QUickcheck And giNkGO

A tiny gomega matcher for using quickcheck with ginkgo. Lets you write property-based tests like this:

Describe("maths", func() {
  It("should work", func() {
    property := func(x, y float64) bool {
      return math.Abs(x)+math.Abs(y) >= math.Abs(x)
    }
    Expect(property).To(quango.Hold())
  })
})