Bug #3872: is test/-ext-/test_bug-3652.rb correct?
http://redmine.ruby-lang.org/issues/show/3872
e$B5/I<<Te(B: Usaku NAKAMURA
e$B%9%F!<%?%9e(B: Assigned, e$BM%@hEYe(B: Normal
e$BC4Ev<Te(B: Nobuyoshi N., e$B%+%F%4%je(B: test, Target version:
1.9.x
ruby -v: ruby 1.9.3dev (2010-09-24 trunk 29329) [i386-mswin32]
e$B<j85$GI=Bj$N%F%9%H$,e(BFailuree$B$K$J$k$N$G%3!<%I$r8+$J$,$i9M$($F$_$?$N$G$9$,!"e(B
ext/-test-/bug-3652/bug.ce$B$Ne(Bbug_str_resize()e$BFb$G$O!"e(B
(1)
rb_str_buf_new()e$B$r;H$C$F!";XDj$5$l$?e(Bcapae$B$r;}$De(BStringe$B$r@8@.$7$F!“e(B
(2)
e$B$=$Ne(BStringe$B$Ne(BRSTRING_PTRe$B$K!”;XDj$5$l$?J8;zNs$rF~$l9~$s$G!"e(B
(3) e$B$=$Ne(BStringe$B$r;XDj$5$l$?D9$5$Ke(Brb_str_resize()e$B$9$ke(B
e$B$H$$$&=hM}$r$7$F$$$^$9$,!"e(B(1)e$B$G@8@.$5$l$?e(BStringe$B$Oe(Bcapae$B$O%;%C%H$5$l$F$$$F$be(B
lene$B$Oe(B0e$B$N$^$^$J$N$G!"e(B(3)e$B$Ge(Bresizee$B$5$l$k:]$Ke(BRSTRING_PTRe$B$,JL$N%]%$%s%?$KJQ2=$7$?e(B
e$B>l9g!"Cf?H$O%3%T!<$5$l$^$;$s!#e(B
string.ce$B$Ne(B1738e$B9TL\e(B
e$B$H$$$&$o$1$G!“$3$N%F%9%H<+BN$O<:GT$7$FEvA3$K8+$($k$N$G$9$,!”$*$+$7$$$N$Oe(B
e$B%F%9%H$J$N$+!“B>$NItJ,$J$N$+!”$I$3$G$7$g$&$+e(B?