oos-utils icon indicating copy to clipboard operation
oos-utils copied to clipboard

Add specialized variations of assert

Open stevenfeuerstein opened this issue 9 years ago • 1 comments

I suggest adding things like

assert_not_null assert_null

etc. I also suggest adding some additional options like "include call stack" .

In case this helps, here's an assert package I wrote: https://livesql.oracle.com/apex/livesql/file/content_CFLUGC2RAJKP3RAF5XYUMTXE8.html

stevenfeuerstein avatar Sep 29 '16 17:09 stevenfeuerstein

@stevenfeuerstein for the null and not_null assertions do you know if we can declare an "any" object type so we wouldn't have to overload all the assertion functions?

Overall though I'm still on the fence with this one. Have tagged it as a Future enhancement. Will wait to see if others up/down vote this idea.

martindsouza avatar Oct 09 '16 03:10 martindsouza