geom/math_test.go

15 lines
264 B
Go
Raw Normal View History

2018-09-22 16:12:34 +00:00
package geom_test
import (
"testing"
"github.com/stretchr/testify/assert"
"opslag.de/schobers/geom"
)
func TestIsNaN32(t *testing.T) {
assert.True(t, geom.IsNaN32(geom.NaN32()))
assert.False(t, geom.IsNaN32(0))
assert.False(t, geom.IsNaN32(-1.43994e8))
}