MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/q7953s/when_all_you_need_is_test_coverage/hgi3pc3/
r/badcode • u/silverweaver • Oct 13 '21
25 comments sorted by
View all comments
18
This tests whether from and getValue are inverses of each other. Sure, they should be, but that's the point of testing: checking that things that should be true are in fact, true.
from
getValue
→ More replies (4)
View all comments
18
u/trutheality Oct 13 '21
This tests whether
fromandgetValueare inverses of each other. Sure, they should be, but that's the point of testing: checking that things that should be true are in fact, true.