[Pharo-users] Failling Tests are green if BlockCannotReturn exception

abdelghani ALIDRA alidrandco at yahoo.fr
Mon Jan 11 18:26:12 EST 2016


Hi,
I observed this unexpected behavior in test classes.In a test class define a method :

testBlock
    |aBlock|
    aBlock := [ ^1 ].
    aBlock value.
    self assert: false.
Althought the assertion is false at the end of the test, the test is green.Actually, It does not matter what you put after aBlock value, the test always succedes (I tried to put a self halt, it does not execute)
I tried this both in Pharo 4 and 5 under Windows and MacOS.
Any ideas?
Cheers 
Abdelghani


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-users_lists.pharo.org/attachments/20160111/8efcc5fc/attachment.html>


More information about the Pharo-users mailing list