]> git.scottworley.com Git - planeteer/blobdiff - planeteer_test.go
More named types: Value
[planeteer] / planeteer_test.go
index 42baae0a5a78bd89a295567baf1ca0854fc82ebd..a487ebf650e4c2afce49355bc5c48cc939356435 100644 (file)
@@ -4,7 +4,7 @@ import "testing"
 
 func TestEncodeDecode(t *testing.T) {
        dims := []int{3, 2, 4, 17, 26, 15, 2, 1, 2, 1}
-       var i int32
+       var i PhysicalIndex
        for i = 0; i < 636480; i++ { // Product of dims
                addr := DecodeIndex(dims, i)
                for j := 0; j < len(dims); j++ {
@@ -19,7 +19,7 @@ func TestEncodeDecode(t *testing.T) {
 }
 
 func TestCommas(t *testing.T) {
-       cases := map[int32]string{
+       cases := map[Value]string{
                1: "1",
                10: "10",
                100: "100",