xref: /freebsd/contrib/one-true-awk/testdir/t.delete2 (revision 23f24377b1a9ab6677f00f2302484d6658d94cab)
1NR < 50 { n = split($0, x)
2  for (i = 1; i <= n; i++)
3  for (j = 1; j <= n; j++)
4	y[i,j] = n * i + j
5  for (i = 1; i <= n; i++)
6	delete y[i,i]
7  k = 0
8  for (i in y)
9	k++
10  if (k != int(n^2-n))
11	printf "delete2 miscount %d vs %d at %d\n", k, n^2-n, NR
12}
13