Created
December 7, 2016 20:09
-
-
Save yaravind/d0ec75ce67af869ad9a437a04b1dede2 to your computer and use it in GitHub Desktop.
First Go Test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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