Skip to content

Instantly share code, notes, and snippets.

@markstgodard
Created March 21, 2019 01:48
Show Gist options
  • Save markstgodard/80f7cf2dff55c307bd61e9dc85117f3b to your computer and use it in GitHub Desktop.
Save markstgodard/80f7cf2dff55c307bd61e9dc85117f3b to your computer and use it in GitHub Desktop.
package adder
import "testing"
func TestAdd(t *testing.T) {
sum := Add(2, 3)
if sum != 5 {
t.Errorf("Sum, got: %d, want: %d.", sum, 5)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment