Showing posts with label test. Show all posts
Showing posts with label test. Show all posts

Tuesday, March 28, 2023

Free Hearing Tests

 enable images

My man was not with me when I saw the sign for free hearing tests in Costco, but I feel like this comic is not far from the truth had he been there. No, I'm not drawing Lucy in the grocery cart that I was pushing because that would be far too complicated. 

Text:
L: Hey, they're offering free hearing tests over there.
M: What?
L: Yeah, let's go check that out. 

Tuesday, April 13, 2021

Happy Little JUnit Test

Woman saying "your JUnit test passes no matter the input" with man replying "it's a happy test!"

 My husband and I were talking about testing and this scenario came to mind. The purpose of a JUnit test is to test a small area of your code. It should only pass if the code is doing what it is suppose to be doing - you should be able to change the input and see the test fail. Then you can design extra tests to verify that giving wrong or garbage input throws the expected exception. But if your happy path test passes no matter what you input, that's not really doing anything for you. 

Text:
L: Your JUnit test is useless - it never fails, no matter the input.
C: It's a happy test!

Monday, December 8, 2014