The "funny" part is that I knew I should have done this right from the start. In my previous blog post I said:
I should probably do some random stress testing to exercise it more.As is often the case, the fix was tiny - 3 characters! And, of course, it was a situation that was relatively rare. It was a good example that 100% test coverage does not mean no bugs. This kind of thing is one of the downsides of rolling your own.
Here's the fixed source code. The bug was missing "<< h" on line 202
No comments:
Post a Comment