func TestSimplePointArray(t *testing.T) {
	assert := audit.NewTestingAssertion(t, true)
	ps := NewPoints()
	assert.Empty(ps, "No points yet.")
	ps = append(ps, NewPoint(2.0, 2.0))
	ps = append(ps, NewPoint(5.0, 1.0))
	ps = append(ps, NewPoint(4.0, 2.0))
	ps = append(ps, NewPoint(3.0, 3.0))
	ps = append(ps, NewPoint(1.0, 1.0))
	assert.Equal(ps.Len(), 5, "now with points")
	sort.Sort(ps)
	assert.Equal(ps[0], NewPoint(1.0, 1.0), "first point")
	assert.Equal(ps.Len(), 5, "length")
	assert.Equal(ps[3].X(), 4.0, "X of 4th point")
}
Test simple point array.
package numerics
import (
	"sort"
	"testing"
	"github.com/tideland/golib/audit"
)
func TestSimplePoint(t *testing.T) {
	assert := audit.NewTestingAssertion(t, true)
	pa := NewPoint(1.0, 5.0)
	pb := NewPoint(2.0, 2.0)
	pc := NewPoint(3.0, 4.0)
	assert.Equal(pa.X(), 1.0, "X of point A")
	assert.Equal(pa.Y(), 5.0, "Y of point A")
	assert.About(pb.DistanceTo(pc), 2.236, 0.0001, "distance B to C")
	assert.Equal(MiddlePoint(pb, pc).X(), 2.5, "X value of middle point")
	assert.Equal(MiddlePoint(pb, pc).Y(), 3.0, "Y value of middle point")
	assert.Equal(PointVector(pb, pc).String(), "<1.000000, 2.000000>", "string representation of vector")
}