How to create an infinite loop

Obvious in retrospect, but took me a minute to catch on to what’s going on here: This works like a trooper until someone passes in a byte.MaxValue in a unit test and i becomes 0 after reaching maximum and getting incremented again.

Follow

Get every new post delivered to your Inbox.

Join 300 other followers