Ah, yes, I don't understand neither.
For me, the non inlined version seems to work already and gives #(5 5 5 5 5).
The inlined version fails and gives #(1 2 3 4 5), except if you fool the Compiler with the trick I have indicated:
testWhileModificationBefore
��� | index |
��� index := 0.
��� [ index < 5 ] whileTrue: [
��� ��� index := index + 1.
��� ��� collection add: [1>2 ifTrue: [index:=0]. index ] ].
��� self assertValues: #(5 5 5 5 5)
The point remains:some well known failing tests that won't be solved should go in known failures.
Nicolas
> I suggest this test be moved in known failures.I don't get it ;-)
> Lukas ?
This looks fine to me.
Lukas
--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project