i'm sure one of you has already figured this out.
how do i test bad log_prob situations?
to be specific, i have something like this in my code:
double log_prob = model_.template log_prob<false, true>(zeta, print_stream_);
stan::math::check_finite(function, "log_prob", log_prob);
and i want to make sure that i test for how the rest of my code handles that std::domain_error.
so i need a "bad" model/log_prob :)
many thanks in advance.
cheers
alp