Shit ton of tests
This commit is contained in:
parent
99b00887a8
commit
ccf98c2f6e
13 changed files with 1157 additions and 1 deletions
16
math/math_test.go
Normal file
16
math/math_test.go
Normal 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)
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue