If ya'll got any questions relating to writing tests in Go, just let me know
@roko5672 жыл бұрын
"We have introduced what's called a regression, which is a fancy word for saying you broke shit that already worked" ♥️♥️♥️♥️
@DonaldFeury2 жыл бұрын
I'm surprised no one has commented on that until now 🤣
@Syhtet Жыл бұрын
First things first: Thanks for you gread videos here at youtube. I found this channel a few minutes ago and as there a a lot of interesting videos I already subscribed to your channel ;) Two things: 1. Should not (in line 19) the 'testCase.input' be 'result'? 2. The package name in the test package can be mail_test. Main must then be imported then but if you build a project then the tests are more separated and should´nt be included in the binary. No idea why the should be included anyways.
@michelecampus98012 жыл бұрын
Thanks for this video!
@DonaldFeury2 жыл бұрын
You're welcome! 👍
@patrickjoly78203 жыл бұрын
Very good stuff in this one. Thank you!
@DonaldFeury3 жыл бұрын
No problem, now get testing!
@azraelgm3 жыл бұрын
Go beginner here - thanks for the awesome videos! I think I understand most of this, but why is testCases a slice of an anonymous struct? I know what an anonymous struct is, but not sure why a slice is used. Thanks
@DonaldFeury3 жыл бұрын
The reason its a slice is because it is a collection of various test cases we want to use against our function This prevents from having to write a separate test function for every test case.