Bubbles
0 points · 51 days ago · 0 comments

Is your test in the business of calculating the expected output from the inputs? Then your test is duplicating the logic from the code under test. There is a reason why too much logic in tests is frowned upon: If you implement the same logic twice, you are prone to repeat the same mistakes in the test which you already made in the real implementation. for c in [ Case(socket_type=SOCK_STREAM, fruit="Apple"), Case(socket_type=SOCK_STREAM, fruit="Orange"), Case(socket_type=SOCK_DGRAM, fru...

No comments yet. Log in to reply on the Fediverse. Comments will appear here.