> var anyTrue = loggedIn | hasGreenHair | likesBananas;//the property to test
Does this do what I think it does?
This is terrible practice. Tests should not replicate the business logic of the production code.
Does this do what I think it does?
This is terrible practice. Tests should not replicate the business logic of the production code.
If you use literal expected results for all of your test cases, you're probably either not covering enough cases or making your tests so verbose and long that they will start to diverge in weird ways.