15 lines
182 B
Go
15 lines
182 B
Go
|
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)
|
||
|
}
|
||
|
}
|