From: Masatoshi SEKI Date: 2008-08-24T02:20:38+09:00 Subject: [ruby-dev:35938] Re: [Bug #480] Failure: test_has_expires_eh(TestTupleBag) --Apple-Mail-1-686914023 Content-Type: text/plain; charset=ISO-2022-JP; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit 咳といいます。 On 2008/08/24, at 1:29, Kazuhiro NISHIYAMA wrote: > Bug #480: Failure: test_has_expires_eh(TestTupleBag) > http://redmine.ruby-lang.org/issues/show/480 > > 起票者: Kazuhiro NISHIYAMA > ステータス: Open, 優先度: Normal > > たぶんすべての環境で出ている以下のFailureですが、 > test/rinda/test_tuplebag.rbで > def test_has_expires_eh > assert_equal false, @tb.has_expires? > となっていて、has_expires?はlib/rinda/ > tuplespace.rbで > def has_expires? > @enum.find do |tuple| > tuple.expires > end > end > となっていて、Enumerable#findは見つかった要素または > nilを返すため、 > falseは返ってこないからのようです。 あれ?こんなテスト書いてたっけ‥。 すみません。 いまマシンが壊れてしまい、発注しているところです。 なので来週中旬まで以降に作業します。 ごめんなさい。 --Apple-Mail-1-686914023 Content-Type: text/html; charset=ISO-2022-JP Content-Transfer-Encoding: quoted-printable
Bug = #480: Failure: test_has_expires_eh(TestTupleBag)
http://redmine.ruby-= lang.org/issues/show/480

=1B$B5/I<=1B$B%9%F!<%?%9=1B(B: Open, =1B$BM%@hEY=1B(B: = Normal

=1B$B$?$V$s$9$Y$F$N4D6-$G=3DP$F$$$k0J2<$N=1B(BFailure=1B$B$G= $9$,!"=1B(B
test/rinda/test_tuplebag.rb=1B$B$G=1B(B
 def = test_has_expires_eh
   assert_equal false, = @tb.has_expires?
=1B$B$H$J$C$F$$$F!"=1B(Bhas_expires?=1B$B$O=1B(Blib/ri= nda/tuplespace.rb=1B$B$G=1B(B
   def has_expires?
=      @enum.find do |tuple|
=        tuple.expires
=      end
=    end
=1B$B$H$J$C$F$$$F!"=1B(BEnumerable#find=1B$B$O8+$= D$+$C$?MWAG$^$?$O=1B(Bnil=1B$B$rJV$9$?$a!"=1B(B
false=1B$B$OJV$C$F$3$J$= $$+$i$N$h$&$G$9!#=1B(B

=1B$B$"$l!)$3$= s$J%F%9%H=3Dq$$$F$?$C$1!E!#=1B(B

=1B$B$9$_$^$;$s!= #=1B(B
=1B$B$$$^%^%7%s$,2u$l$F$7$^$$!"H/Cm$7$F$$$k$H$3$m$G$9!#=1B= (B
=1B$B$J$N$GMh=3D5Cf=3D\$^$G0J9_$K:n6H$7$^$9!#=1B(B
= =1B$B$4$a$s$J$5$$!#=1B(B



= --Apple-Mail-1-686914023--