Open-Turing-Project/OpenTuring — Issue #2: HashMaps Sometimes Return The Wrong Number
Author: trishume
Created: 2011-11-17 00:11:59+00:00
State: open

Sometimes the wrong answer is returned.

Code to reproduce:

```
var h : int := IntHashMap.New ()

for i : 0 .. 100
IntHashMap.Put (h,"test " + intstr(i), i)
end for
for i : 50..90
var got : int
var worked := IntHashMap.Get (h, "test " + intstr(i), got)
if worked ~= 1 or got ~= i then
put "failed on " + intstr(i) + " it gave " + intstr(got)
end if
end for
```