Snippets

Angel Abad Assign and if in Go

Created by Angel Abad
1
2
3
if score := game.Score(); score != 0 {
    t.Errorf("Expected score of 0, but it was %d instead.", score)
}

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.