r/badcode • • Jul 08 '19

c# While reviewing code today...

Post image
696 Upvotes

57 comments sorted by

View all comments

116

u/campbellm Jul 08 '19

I'm almost tempted to ask what the unit test looks like

138

u/Kidiri90 Jul 08 '19

unit test

What's that?

1

u/GideonMax Jan 02 '20

A unit test is code whose purpose is to test code you made.

For example, if you made a function that multiplies a number by two, the unit test will feed the function some numbers and check the outputs