Skip to content

Instantly share code, notes, and snippets.

@yaravind
Created December 7, 2016 20:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yaravind/d0ec75ce67af869ad9a437a04b1dede2 to your computer and use it in GitHub Desktop.
Save yaravind/d0ec75ce67af869ad9a437a04b1dede2 to your computer and use it in GitHub Desktop.
First Go Test
package example
import "testing"
func TestNameAndAge(t *testing.T) {
n, a := NameAndAge()
if n != "Esha" || a != 7 {
t.Errorf("Expected 'Esha' and '7' but got %s and %d", n, a)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment