From: "Hal E. Fulton" Date: 2002-09-18T15:21:54+09:00 Subject: Re: Code coverage in Ruby? ----- Original Message ----- From: "WATANABE Hirofumi" To: "ruby-talk ML" Sent: Wednesday, September 18, 2002 12:12 AM Subject: Re: Code coverage in Ruby? > Ruby will give you a warning only when the right-hand side > is a constant. If it is a constant, the if condition > must be unnecessary. > > % ruby -we 'if foo = 1 then end' > -e:1: warning: found = in conditional, should be == > % ruby -we 'bar = 1; if foo = bar then end' Thank you. I had not remembered that correctly. Hal