Xion / pyqcy

QuickCheck-like testing framework for Python
http://xion.io/pyqcy
Other
41 stars 0 forks source link

Combinator for selecting k and random number of elements from a specified collection #26

Closed beloglazov closed 11 years ago

beloglazov commented 11 years ago

Hi Karol,

Currently there is the elements combinator, which selects a single element from a set of elements. It would be nice to have two more combinators that select k and random number of elements from a collection. Just a suggestion :) Thanks!

Xion commented 11 years ago

I have implemented this as additional keyword argument count to elements. Available in master; will package a new release soon.

Xion commented 11 years ago

It should be available in 0.4.5 now.

beloglazov commented 11 years ago

Looks great, thank you! :)