fun test2(h: Map[Int, Int])
do
print("* test 2 *")
- var nb = 999
+ var nb = 99
var i = 0
while i <= nb do
i = nb
while i >= 0 do
- if (h[i*31+13] != i * 2) then
+ if h[i*31+13] != i * 2 then
print("{i}: {i*31+13} != {h[i]}")
end
i = i - 1
i = nb * 2
while i >= 0 do
- if (i % 3 != 0) then
+ if i % 3 != 0 then
h.values.remove(i)
end
i = i - 1
if h.has_key(j) then
print("{i}: {j} should be removed")
end
- else if (h[j] != i * 2) then
+ else if h[j] != i * 2 then
print("{i}: {j} != {h[i]}")
end
i = i - 1