Create main_test.go

This commit is contained in:
Ruan Bekker 2019-07-07 23:35:29 +02:00 committed by GitHub
parent 870cf1408c
commit 2dced817a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,11 @@
package main
import (
"testing"
)
func TestCalculate(t *testing.T) {
if Calculate(2) != 4 {
t.Error("Expected 2 + 2 to equal 4")
}
}