@_jnf refining my lazy tweet: how should I go about asserting that a recursive call of a class method happened with minitest?
-
-
Replying to @Carols10cents
@Carols10cents yeah, I know. I wanna do it for a teaching exercise about iteration v. recursion and it'd be nice to have tests.1 reply 0 retweets 0 likes -
Replying to @Carols10cents
@Carols10cents@_jnf Exactly what I stress in my 401 class - iteration and recursion are two diff ways to model the same behavior1 reply 0 retweets 0 likes -
Replying to @BillLaboon
@BillLaboon@Carols10cents oh totes; I just wanna give them a pile of homework that'll force recursive solutions.1 reply 0 retweets 2 likes -
-
Replying to @Carols10cents
@_jnf@BillLaboon I've got an idea, give me a minute to tinker up something fun1 reply 0 retweets 2 likes -
Replying to @Carols10cents
@_jnf@BillLaboon and by minute i clearly mean hours, plz continue to hold, your programming predicament is very important to us1 reply 0 retweets 0 likes -
Replying to @Carols10cents
@_jnf@BillLaboon ok this is probably the grossest Ruby code I've ever written: https://gist.github.com/carols10cents/8117b24375de4b3cf7414209619c4b8a …2 replies 0 retweets 1 like
@_jnf @BillLaboon ... but maybe it'll get someone to tell you a better way to do it ;)
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
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.