MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/cajaak/while_reviewing_code_today/et93vy7/?context=3
r/badcode • u/andesz • Jul 08 '19
57 comments sorted by
View all comments
116
I'm almost tempted to ask what the unit test looks like
138 u/Kidiri90 Jul 08 '19 unit testWhat's that? 55 u/SanityNotFound Jul 08 '19 Well, it.. you know, tests.. units. 43 u/SheepLinux Jul 08 '19 instructions unclear; dick stuck in toaster... 22 u/overkill Jul 08 '19 Spoken like a true QA. 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
138
unit test
What's that?
55 u/SanityNotFound Jul 08 '19 Well, it.. you know, tests.. units. 43 u/SheepLinux Jul 08 '19 instructions unclear; dick stuck in toaster... 22 u/overkill Jul 08 '19 Spoken like a true QA. 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
55
Well, it.. you know, tests.. units.
43 u/SheepLinux Jul 08 '19 instructions unclear; dick stuck in toaster... 22 u/overkill Jul 08 '19 Spoken like a true QA.
43
instructions unclear; dick stuck in toaster...
22 u/overkill Jul 08 '19 Spoken like a true QA.
22
Spoken like a true QA.
1
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
116
u/campbellm Jul 08 '19
I'm almost tempted to ask what the unit test looks like