Discussion: bug in Test Unit?
Afficher un message
Vieux 13/03/2008, 05h45   #4
Phlip
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: bug in Test Unit?

Nasir Khan wrote:

> def self.run=(flag)
> This is obviously not what will happen when at_exit do
> unless $! || Test::Unit.run?


>> not a bug... just bad English. It should be #ran?, not #run?.


See the ? mark?

'run?' ain't the same as 'run=' or 'run()'. Hence, your line gets
pronounced "unless you have an error, or you already ran, you will now
run".

(And, yes, you Inflector detractors, good grammar matters in
programming!

--
Phlip
http://assertxpath.rubyforge.org/
  Réponse avec citation
 
Page generated in 0,04432 seconds with 9 queries