[Ruby-Feature#3852][Open] test_prime.rb:62が通らない

Feature #3852: test_prime.rb:62e$B$,DL$i$J$$e(B
http://redmine.ruby-lang.org/issues/show/3852

e$B5/I<<Te(B: Shota F.
e$B%9%F!<%?%9e(B: Open, e$BM%@hEYe(B: Normal
e$BC4Ev<Te(B: Yuki S., e$B%+%F%4%je(B: lib

test_prime.rb:62e$B$,0J2<$N$h$&$KDL$j$^$;$s$G$7$?!#e(B

  1. Error:
    test_new(TestPrime):
    IOError: not opened for reading
    //test/test_prime.rb:62:in read' ../../test/test_prime.rb:62:intest_new

e$B%Q%C%A$O0J2<$G$9!#e(B

diff --git test/test_prime.rb test/test_prime.rb
index e095a29dca9295 100644
test/test_prime.rb
+++ test/test_prime.rb
@@ -55,7 +55,7 @@ class TestPrime < Test::Unit::TestCase
end

def test_new

  • buf = StringIO.new(, w)
  • buf = StringIO.new(, w+)
    orig, $stderr = $stderr, buf

    enum = Prime.new

e$B%A%1%C%He(B #3852 e$B$,99?7$5$l$^$7$?!#e(B (by Yui NARUSE)

e$B%9%F!<%?%9e(B Opene$B$+$ie(BFeedbacke$B$KJQ99e(B

e$B$&!<$s!":F8=$7$^$;$s$M$!#e(B
e$B%3!<%I8+$F$be(Breade$B$7$F$J$$5$$,$9$k$7!#e(B

http://redmine.ruby-lang.org/issues/show/3852

e$B%A%1%C%He(B #3852 e$B$,99?7$5$l$^$7$?!#e(B (by Shota F.)

e$B$3$N%Q%C%A$OL50UL#$G$7$?!#$J$s$G$3$l$GDL$k$h$&[email protected]$m$&!#e(B

e$B$b$&0lEY;n$7$F$$?$i!"e(Bmake test-alle$B$N;~$K$N$:F8=$7$^$9e(B

P.S.: e$B$"$H:#5$$E$$$?$i$3$le(Bfeaturee$B$K$J$C$F$ke(B ><
e$BD>$;[email protected]$l$+D>[email protected]$1$k$He(B

http://redmine.ruby-lang.org/issues/show/3852

e$B%A%1%C%He(B #3852 e$B$,99?7$5$l$^$7$?!#e(B (by Shota F.)

e$B%Q%C%[email protected]$7$^$7$?!#%3%_%C%H$*4j$$$7$^$9e(B

diff --git test/test_prime.rb test/test_prime.rb
index e095a294662b97 100644
test/test_prime.rb
+++ test/test_prime.rb
@@ -58,8 +58,10 @@ class TestPrime < Test::Unit::TestCase
buf = StringIO.new(, w)
orig, $stderr = $stderr, buf

  • orig_verbose, $VERBOSE = $VERBOSE, false
    enum = Prime.new
    assert !buf.string.empty?

  • $VERBOSE = orig_verbose
    $stderr = orig

    assert enum.respond_to?(:each)


http://redmine.ruby-lang.org/issues/show/3852

e$B%A%1%C%He(B #3852 e$B$,99?7$5$l$^$7$?!#e(B (by Yuki S.)

e$B%9%F!<%?%9e(B Feedbacke$B$+$ie(BClosede$B$KJQ99e(B
e$B?JD=e(B % 0e$B$+$ie(B100e$B$KJQ99e(B

This issue was solved with changeset r29316.
Shota, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


http://redmine.ruby-lang.org/issues/show/3852

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs