Add tests for input validation
alexpghayes opened this issue · 1 comments
alexpghayes commented
tidy()
conf.int
should be logicalconf.level
should be greater than zero and less than 1quick
should be logical- etc
glance()
- All arguments should be logical (I think? Pretty sure the only arguments are
TRUE
/FALSE
switches that add more columns to the output)
augment()
data
/newdata
must be coercable to tibblestype.predict
andtype.residuals
shouldmatch.arg
on the function they get passed to
All
- All named arguments should get evaluated (see #6)
alexpghayes commented
Probably the easiest way to test these would be write new tests in the vein of check_augment_function
that take a specific method (i.e. tidy.Arima
) and a fit model and see if they can break things.