rapidcheck
rapidcheck copied to clipboard
special values missing from arbitrary numeric generators
Generators like arbitrary
rc::check("where are the special values?",
[]() {
const auto x = *rc::gen::arbitrary<double>();
RC_ASSERT(std::isfinite(x));
});
I'd expect NaN, +-inf, and +-0 to be included in the generation. Also, I think it would be convenient to have something like a rc::gen::finite generator if you wanted to exclude NaN and infinity.
I miss this one as well!