[bug?] SUnit shows wrong test result when Warning subclass signals on a test case method
May 27, 2014
3:24 a.m.
Hi all, I wrote this simple test case, but the result is always 'yellow' even if assertions are right (.st code attached). MyHtmlParserWarningTestCase>>testParserWarning1 | warning | warning := MyHtmlParserWarning new. self assert: (warning category isNil). self assert: (warning reason isEmpty). warning signal: #malformed reason: 'no close tag'. self assert: (warning category = #malformed). self assert: (warning reason = 'no close tag'). I think it is a bug on SUnit, so I put the issue 13242 on fogbugz. https://pharo.fogbugz.com/f/cases/13242/ I confirmed it is reproduced in Pharo 3.0.image and the latest image (Pharo-40000.image). Best regards, -- [:masashi | ^umezawa]
4448
Age (days ago)
4448
Last active (days ago)
0 comments
1 participants
participants (1)
-
Masashi UMEZAWA