Add the actual test file

This commit is contained in:
raul 2024-05-12 09:32:23 +02:00
parent b0e0884020
commit c98136caa8
1 changed files with 14 additions and 0 deletions

14
unit-testing/main_test.go Normal file
View File

@ -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)
}
}