}
}
+const N=10
func checka(U PS, a *[]*rat, str string) {
- for i := 0; i < len(a); i++ {
+ for i := 0; i < N; i++ {
check(U, a[i], 1, str);
}
}
check(Ones, one, 5, "Ones");
check(Add(Ones, Ones), itor(2), 0, "Add Ones Ones"); // 1 1 1 1 1
check(Add(Ones, Twos), itor(3), 0, "Add Ones Twos"); // 3 3 3 3 3
- const N = 5;
- a := new([10] *rat);
+ a := new([N] *rat);
d := Diff(Ones);
// BUG: want array initializer
for i:=0; i < N; i++ {