Skip to content

Instantly share code, notes, and snippets.

@utkarshmani1997
Last active August 9, 2017 04:40
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 utkarshmani1997/3e94b904fd66a0abb31e70fc81f95f76 to your computer and use it in GitHub Desktop.
Save utkarshmani1997/3e94b904fd66a0abb31e70fc81f95f76 to your computer and use it in GitHub Desktop.
Demo of unit testing using Ginkgo
package main
import "fmt"
func Sum(x, y int) int {
fmt.Println("Received Digits :", x, y)
return x + y
}
func main() {
m, n := 3, 4
fmt.Println(Sum(m, n))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment