rspec/rules/S888/description.adoc
2021-01-27 13:42:22 +01:00

2 lines
292 B
Plaintext

Testing ``++for++`` loop termination using an equality operator (``++==++`` and ``++!=++``) is dangerous, because it could set up an infinite loop. Using a broader relational operator instead casts a wider net, and makes it harder (but not impossible) to accidentally write an infinite loop.