From: Scott Worley Date: Sun, 3 Jun 2012 11:09:18 +0000 (-0700) Subject: Fix test: Add trading dimension. X-Git-Url: http://git.scottworley.com/planeteer/commitdiff_plain/ebe808f6f0fed968fc1949da25b4c869ec98abf5 Fix test: Add trading dimension. --- diff --git a/planeteer_test.go b/planeteer_test.go index 0cc7f65..7661ad6 100644 --- a/planeteer_test.go +++ b/planeteer_test.go @@ -3,8 +3,9 @@ package main import "testing" func TestEncodeDecode(t *testing.T) { - dims := []int{3, 2, 4, 17, 26, 15, 1, 2, 1} - for i := 0; i < 318240; i++ { // Product of dims + dims := []int{3, 2, 4, 17, 26, 15, 2, 1, 2, 1} + var i int32 + for i = 0; i < 636480; i++ { // Product of dims addr := DecodeIndex(dims, i) for j := 0; j < len(dims); j++ { if addr[j] >= dims[j] {