|
Hegel 0.18.3
Property-based testing for C++
|
Parameters for dates() generator. More...
#include <temporal.h>
Public Attributes | |
| std::optional< Date > | min_value |
| Minimum date (inclusive). Default: January 1 of MIN_YEAR. | |
| std::optional< Date > | max_value |
| Maximum date (inclusive). Default: December 31 of MAX_YEAR. | |
| std::optional< std::vector< Weekday > > | weekdays |
| std::optional< std::vector< Month > > | months |
Parameters for dates() generator.
| std::optional<std::vector<Month> > hegel::generators::temporal::DatesParams::months |
Draw only dates in these months, moving a drawn day in another month to the nearest allowed day inside the bounds as weekdays does. Default: every month.
| std::optional<std::vector<Weekday> > hegel::generators::temporal::DatesParams::weekdays |
Draw only dates on these weekdays. A drawn day on another weekday is moved to the nearest allowed day inside the bounds rather than rejected. Default: every weekday.