Commits

Fazlul Shahriar  committed f983e65

fix invalid string formatting found by govet

  • Participants
  • Parent commits 2e2a374

Comments (0)

Files changed (1)

File gsl/vector_test.go

 	for i := 0; i < v.Size; i++ {
 		n := v.Get(i)
 		if n != 6060 {
-			t.Errorf("Invalid value Get(%d) = %f; expected 6060\n", n)
+			t.Errorf("Invalid value Get(%d) = %f; expected 6060\n", i, n)
 		}
 	}
 }
 		t.Errorf("Invalid size of Subvector %d; expected 6\n", w.Size)
 	}
 	if w.Stride != 1 {
-		t.Errorf("Invalid stride %d; expected %d\n", w.Stride)
+		t.Errorf("Invalid stride %d; expected 1\n", w.Stride)
 	}
 	(*Vector)(w).SetAll(42)
 	for i := 0; i < 20; i++ {
 			}
 		} else {
 			if ve != 0 {
-				t.Errorf("v.Get(%d) = %f; expected 0\n", ve)
+				t.Errorf("v.Get(%d) = %f; expected 0\n", i, ve)
 			}
 		}
 	}