Peter Sujan
Peter Sujan
Thanks for the quick response! That certainly works for testing the return value, but what if `square` printed a bunch of stuff as well? Wouldn't I have to explicitly duplicate...
Right, but what if I don't really care about what's being printed? Like maybe it's a huge number of logging lines or something. Or a student adds their own print...
Oooh perfect! Didn't realize it was just directly using the Python doctest package. Thanks for the help guys!
Yeah, I'm finding that the behavior of +ELLIPSIS (even outside of ok) is a little inconsistent... I'll try that other option, thanks guys!