Write a test for the bug.
Make the tests past.
Add a test for the infinite loop.
Make the tests pass.
Merge pull request #94 from Scaffold/issue-94

Infinite loop bug.