Shit ton of tests

This commit is contained in:
Melody Becker 2025-04-24 15:59:15 +02:00
parent 99b00887a8
commit ccf98c2f6e
Signed by: mstar
SSH key fingerprint: SHA256:9VAo09aaVNTWKzPW7Hq2LW+ox9OdwmTSHRoD4mlz1yI
13 changed files with 1157 additions and 1 deletions

16
math/math_test.go Normal file
View file

@ -0,0 +1,16 @@
package mathutils_test
import (
"testing"
mathutils "git.mstar.dev/mstar/goutils/math"
)
func TestAbs(t *testing.T) {
if x := mathutils.Abs(-5); x != 5 {
t.Fatalf("Received %v, wanted 5", x)
}
if x := mathutils.Abs(6); x != 6 {
t.Fatalf("Received %v, wanted 6", x)
}
}