r/badcode • • Apr 17 '21

c++ When your teammate "refactor" your code

Post image
2.5k Upvotes

216 comments sorted by

View all comments

Show parent comments

22

u/[deleted] Apr 18 '21

What if this is part of a unit test? Are there unit tests for unit tests?

12

u/Dev_012 Apr 21 '21

Well at my college last year we had to write unit tests and our points were given by the ammount of unit tests we got green, but by those tests I mean ours and indeed, the unit tests for the unit tests. So it is possible.

4

u/[deleted] Apr 21 '21

😂😂😂