Skip to content

Instantly share code, notes, and snippets.

@cyantarek
Last active June 19, 2018 08:48
Show Gist options
  • Save cyantarek/32cae407eeef383ce45356c2a6351452 to your computer and use it in GitHub Desktop.
Save cyantarek/32cae407eeef383ce45356c2a6351452 to your computer and use it in GitHub Desktop.
//calculator_test.go
package main
import "testing"
func TestAdd(t *testing.T) {
if result, _ := AddFunc(1,2); result != 3 {
t.Error("Test failed")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment