Beispiel #1
0
func TestBound(t *testing.T) {
	x := real.Vector{1, 4}
	x.Bound(real.Vector{2, 2}, real.Vector{3, 3})
	if x[0] != 2 || x[1] != 3 {
		t.Fail()
	}
}