Add the actual test file
This commit is contained in:
parent
b0e0884020
commit
c98136caa8
|
@ -0,0 +1,14 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestGetSquareRoot(t *testing.T) {
|
||||
got := getSquareRoot(49)
|
||||
want := 7
|
||||
|
||||
if got != want {
|
||||
t.Errorf("Got %v, wanted %v\n", got, want)
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue