Skip to content

go-functional/quicktest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Hi Gophers! Unfortunately, I don't have the time to maintain this library right now, so I can't add any features. I'll gladly accept pull requests if you're interested. Also, if you'd like to maintaining the library longer term, I'm also happy to welcome you as a contributor. If you're interested in either submitting a PR or being a longer term maintainer, please let me know on the Gophers Slack. My username there is arschles.

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
})

About

Quicktest in Go (not maintained right now)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published