import "testing"
func TestEncodeDecode(t *testing.T) {
- dims := []int{3, 2, 4, 17, 26, 15, 2, 1, 2, 1}
+ dims := LogicalIndex{3, 2, 4, 17, 26, 15, 2, 1, 2, 1}
var i PhysicalIndex
for i = 0; i < 636480; i++ { // Product of dims
addr := DecodeIndex(dims, i)
}
func TestCommas(t *testing.T) {
- cases := map[int32]string{
+ cases := map[Value]string{
1: "1",
10: "10",
100: "100",