Skip to content

Instantly share code, notes, and snippets.

@picatz
Created May 8, 2018 14:33
Show Gist options
  • Save picatz/d70b2aca722f0722e60162cd97892191 to your computer and use it in GitHub Desktop.
Save picatz/d70b2aca722f0722e60162cd97892191 to your computer and use it in GitHub Desktop.
package main
import "testing"
func TestAddNumbers(t *testing.T) {
exp := 10
got := AddNumbers(8, 2)
if exp != got {
t.Error("unable to successfully add two numbers")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment