Comment 2 for bug 671797

Revision history for this message
Stephane Mikaty (eCircle AG) (s-mikaty) wrote : Re: [Bug 671797] Re: Condition.check is evil

check is a verb that suggests something nasty will happen if the outcome
of the test is failure (akin to "assert").

Would you write this?

if assert ...
...
end

On 11/06/2010 02:23 PM, edA-qa wrote:
> "Condition.check" by design works exactly as "Check" does, but instead
> of throwing an exception sets the return value. Though it may seem like
> a good idea to make it return immediately, under many normal use cases
> it won't work.
>
> The checkNot condition however does not wait (as it can't make sense).
> Therefore you could use it as a non-waiting condition:
>
> if ! checkNot ...
>
> We could easily add an alternate checkNoWait condition if that would be
> cleared.
>

Stephane Mikaty
Quality Assurance

eCircle
P: +49 89 12009-784 | F: +49 89 12009-750 | E: <email address hidden>
Nymphenburger Str. 86, 80636 München

Stay in touch
Web: www.ecircle.com/de | Newsletter: www.ecircle.com/index.php?id=63&L=0

Für Hilfe mit dem eC-messenger wenden Sie sich bitte an unseren
Support unter Tel +49 (0)89 120 09 600 oder <email address hidden>

Neuste Untersuchungen
Ein unschlagbares Doppel: E-Mail-Marketing & Webanalyse
Download Whitepaper: www.ecircle.com/index.php?id=61&L=0

eCircle GmbH, HRB 184 478, Handelsregister München, Geschäftsführung: Volker Wiewer (Vorsitzender),
Alexander Meyer, Thomas Wilke, Vorsitzender des Aufsichtsrates: Dr. Arnold Bahlmann