Created
March 1, 2019 16:29
-
-
Save juanpabloaj/d34b80135bd2d4a8c2d4bff8177701fe to your computer and use it in GitHub Desktop.
go test user_test.go user.go
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 user | |
import "fmt" | |
func ShowUsers() int { | |
return 0 | |
} | |
func main() { | |
fmt.Println("vim-go") | |
} |
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 user | |
import "testing" | |
func TestHelloWorld(t *testing.T) { | |
if ShowUsers() != 0 { | |
t.Errorf("something wrong") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment