1 2 3
if score := game.Score(); score != 0 { t.Errorf("Expected score of 0, but it was %d instead.", score) }
You can clone a snippet to your computer for local editing. Learn more.