Quick tutorial on how to write a simple Go test that checks multiple use cases and compares it's value against the expected.
Idea is to generate a value and compare it against the expected outcome for each test.
Skip to 0:54 to see the tests and it's syntax.
0:00 - Project/Package Setup
0:54 - Writing tests for the package.
-----------------------------------------------------------------------
Music by Atch
SoundCloud: bit.ly/AtchSoundCloud
Spotify: bit.ly/AtchSpotify
Instagram: www.instagram.com/atchmusic
Escape - Atch / atch-music
Creative Commons — Attribution 3.0 Unported — CC BY 3.0
Free Download / Stream: https://bit.ly/-_escape
Music promoted by Audio Library • Escape – Atch (No Copyright Music)
-----------------------------------------------------------------------