]> git.scottworley.com Git - planeteer/commitdiff
Fix test: Add trading dimension.
authorScott Worley <sworley@chkno.net>
Sun, 3 Jun 2012 11:09:18 +0000 (04:09 -0700)
committerScott Worley <sworley@chkno.net>
Sun, 3 Jun 2012 11:09:18 +0000 (04:09 -0700)
planeteer_test.go

index 0cc7f65d5dfde913e40dcddca1b7b38a72701c6e..7661ad6edc6000ac453653135a99fe03e1d21c3f 100644 (file)
@@ -3,8 +3,9 @@ package main
 import "testing"
 
 func TestEncodeDecode(t *testing.T) {
 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] {
                addr := DecodeIndex(dims, i)
                for j := 0; j < len(dims); j++ {
                        if addr[j] >= dims[j] {