Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • 6
    Rule of thumb: if you have the same logic in the test as you do in the code it's testing, it's not a good test. The table test is the best balance of dumb and DRY there, I think. Commented Jun 8, 2019 at 16:03
  • @jonrsharpe so much less maintainable and takes so fewer lines of code to write though.. but I see where you are coming from. I'm torn. Commented Jun 8, 2019 at 16:24
  • 1
    What does conditionOne and conditionTwo actually accomplish? What is the real-world concept that is being captured? Commented Jun 8, 2019 at 16:34
  • @RobertHarvey the example is completely contrived. Commented Jun 8, 2019 at 16:48