Lazy tweet: Is there a minitest assertion for recursion in a method call?
@_jnf I would say that's testing implementation and not behavior... And if you really want to do that anyway, pull in mocha
-
-
@Carols10cents yeah, I know. I wanna do it for a teaching exercise about iteration v. recursion and it'd be nice to have tests. -
@_jnf imo it'd be cooler if you just had tests for the behavior, then you could show that they pass either way you implement it - 8 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.