Skip to content
Quicktest in Go (work in progress)
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md

README.md

Quicktest!

Work in progress

This library is based on https://www.scalacheck.org/.

Let's say you're trying to test strings.Join. Here's how you do that:

prop := Property("strings.Join")
err := prop.ForAll(func(val Val) bool {
  str := val.Get().(string)
  joined := strings.Join([]string{str, str}, "hello!")
  joined == str + "hello!" + str
})
You can’t perform that action at this time.