Alex Young
8/3/2006 11:54:00 AM
Sven Suska wrote:
<snip>
> Or, to put it directly:
> Whenever rks.size was the _first_ method call on "rks",
> the output was:
> [:rks_size, 0]
> [:rks_length, 0]
> [:rks_class, Array]
> [:rks_item, nil]
> [:rks_length, 0]
> [:rks_size, 0]
> And the output was normal otherwise. (as posted in the beginning)
>
> Regardless of how many times a test method was repeated.
> Regardless of the order of test methods. (When one method
> contained the "corrupted" variant and the other did not.)
>
>
> This all stabilizes the hypothesis,
> that the Array#size method empties the array
> when called as the first method after the object obtained.
This may be irrelevant, but what's rks.class.ancestors?
--
Alex