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