# 1.8.7 RSS test failure

**URL:** <https://www.ruby-forum.com/t/1-8-7-rss-test-failure/164518>\
**Category:** Development\
**Created:** [April 2, 2009, 4:42am UTC](https://www.ruby-forum.com/t/1-8-7-rss-test-failure/164518 "2009-04-02T04:42:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Urabe\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/ecc23a/32.png) [@Urabe\_S](https://www.ruby-forum.com/u/Urabe_S)\
**Post date:** [April 2, 2009, 4:42am UTC](https://www.ruby-forum.com/t/1-8-7-rss-test-failure/164518/1 "2009-04-02T04:42:07Z")

</div>

e$BKNIt$G$9!#$A$g$C$H$4AjCL!#e(B

1.8.7e$B$r%j%j!\<%9$G$-$F$J$$M}M3$N0l$D$Ke(BRSSe$B$N%F%9%H$,DL$i$J$$$+$i$H$$$&$N$,$"$j$^$9e(B(e$B2\<5-e(B)e$B!#e(B  
e$B$3$l$Oe(B1.8.8deve$B$+$i%F%9%H$@$1;}$C$F$-$?$+$i$J$N$G!"$J$s$i$+BP1~$7$J$$$H$$$1$J$$$N$G$9$,!“e(B  
(1)  
e$B$3$N%F%9%H$,@5$7$/$Fe(B1.8.7e$B$N5sF0$O8m$j$J$N$G$7$g$&$+!”$=$l$H$be(B  
(2)  
1.8.7e$B$O8m$j$H$O8@$($:!"%F%9%H$re(Breverte$B$9$Y$-$J$N$G$7$g$&$+!#e(B

e$BH=CG$D$$$F$J$$$N$G$_CN7C$r$_\<Z$j$7$?$/!#$h$m$7$/$\*4j$$$7$^$9!#e(B

zsh % make test-all TESTS=rss  
./miniruby -I/home/shyouhei/ruby/branches/ruby\_1\_8\_7/lib -I.ext/common  
-I./- -r/home/shyouhei/ruby/branches/ruby\_1\_8\_7/ext/purelib.rb  
/home/shyouhei/ruby/branches/ruby\_1\_8\_7/runruby.rb --extout=.ext –  
“/home/shyouhei/ruby/branches/ruby\_1\_8\_7/test/runner.rb”  
–basedir="/home/shyouhei/ruby/branches/ruby\_1\_8\_7/test"  
–runner=console rss  
Loaded suite rss  
Started  
…F…F…F…  
Finished in 28.22949 seconds.

1. Failure:  
test\_atom\_content(RSS::TestAtomCore)  
[/home/shyouhei/ruby/branches/ruby\_1\_8\_7/test/rss/rss-assertions.rb:910:in  
`assert_rexml_element' /home/shyouhei/ruby/branches/ruby_1_8_7/test/rss/rss-assertions.rb:895:in`assert\_rexml\_element’  
/home/shyouhei/ruby/branches/ruby\_1\_8\_7/test/rss/test\_atom.rb:652:in  
`assert_atom_content_inline_other_base64_to_s' /home/shyouhei/ruby/branches/ruby_1_8_7/test/rss/test_atom.rb:643:in`assert\_atom\_content\_inline\_other\_base64\_to\_s’  
/home/shyouhei/ruby/branches/ruby\_1\_8\_7/test/rss/test\_atom.rb:604:in  
`assert_atom_content_to_s' /home/shyouhei/ruby/branches/ruby_1_8_7/test/rss/test_atom.rb:600:in`assert\_atom\_content\_to\_s’  
/home/shyouhei/ruby/branches/ruby\_1\_8\_7/test/rss/test\_atom.rb:205:in  
`test\_atom\_content’]:  
\<“iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAACXBIWXMAAABIAAAASABGyWs+AAAACXZwQWcAAAABAAAAAQDHlV/tAAAADElEQVQI12P4//8/AAX+Av7czFnnAAAAAElFTkSuQmCC”\>  
expected but was  
\<“iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAACXBIWXMAAABI\nAAAASABGyWs+AAAACXZwQWcAAAABAAAAAQDHlV/tAAAADElEQVQI12P4//8/\nAAX+Av7czFnnAAAAAElFTkSuQmCC\n”\>.

2. Failure:  
test\_entry\_content\_text(RSS::TestParserAtom)  
[/home/shyouhei/ruby/branches/ruby\_1\_8\_7/test/rss/rss-assertions.rb:910:in  
`assert_rexml_element' /home/shyouhei/ruby/branches/ruby_1_8_7/test/rss/rss-assertions.rb:895:in`assert\_rexml\_element’  
/home/shyouhei/ruby/branches/ruby\_1\_8\_7/test/rss/rss-assertions.rb:591:in  
`assert_atom_content_inline_other_text' /home/shyouhei/ruby/branches/ruby_1_8_7/test/rss/rss-assertions.rb:569:in`each’  
/home/shyouhei/ruby/branches/ruby\_1\_8\_7/test/rss/rss-assertions.rb:569:in  
`assert_atom_content_inline_other_text' /home/shyouhei/ruby/branches/ruby_1_8_7/test/rss/rss-assertions.rb:559:in`assert\_atom\_content\_inline\_other\_text’  
/home/shyouhei/ruby/branches/ruby\_1\_8\_7/test/rss/rss-assertions.rb:553:in  
`assert_atom_content_inline_other' /home/shyouhei/ruby/branches/ruby_1_8_7/test/rss/rss-assertions.rb:552:in`assert\_atom\_content\_inline\_other’  
/home/shyouhei/ruby/branches/ruby\_1\_8\_7/test/rss/rss-assertions.rb:459:in  
`assert_atom_content' /home/shyouhei/ruby/branches/ruby_1_8_7/test/rss/rss-assertions.rb:456:in`assert\_atom\_content’  
/home/shyouhei/ruby/branches/ruby\_1\_8\_7/test/rss/test\_parser\_atom\_entry.rb:100:in  
`test\_entry\_content\_text’]:  
\<“iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAACXBIWXMAAABIAAAASABGyWs+AAAACXZwQWcAAAABAAAAAQDHlV/tAAAADElEQVQI12P4//8/AAX+Av7czFnnAAAAAElFTkSuQmCC”\>  
expected but was  
\<“iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAACXBIWXMAAABI\nAAAASABGyWs+AAAACXZwQWcAAAABAAAAAQDHlV/tAAAADElEQVQI12P4//8/\nAAX+Av7czFnnAAAAAElFTkSuQmCC\n”\>.

3. Failure:  
test\_entry\_content(RSS::TestParserAtomFeed)  
[/home/shyouhei/ruby/branches/ruby\_1\_8\_7/test/rss/rss-assertions.rb:910:in  
`assert_rexml_element' /home/shyouhei/ruby/branches/ruby_1_8_7/test/rss/rss-assertions.rb:895:in`assert\_rexml\_element’  
/home/shyouhei/ruby/branches/ruby\_1\_8\_7/test/rss/rss-assertions.rb:591:in  
`assert_atom_content_inline_other_text' /home/shyouhei/ruby/branches/ruby_1_8_7/test/rss/rss-assertions.rb:569:in`each’  
/home/shyouhei/ruby/branches/ruby\_1\_8\_7/test/rss/rss-assertions.rb:569:in  
`assert_atom_content_inline_other_text' /home/shyouhei/ruby/branches/ruby_1_8_7/test/rss/rss-assertions.rb:559:in`assert\_atom\_content\_inline\_other\_text’  
/home/shyouhei/ruby/branches/ruby\_1\_8\_7/test/rss/rss-assertions.rb:553:in  
`assert_atom_content_inline_other' /home/shyouhei/ruby/branches/ruby_1_8_7/test/rss/rss-assertions.rb:552:in`assert\_atom\_content\_inline\_other’  
/home/shyouhei/ruby/branches/ruby\_1\_8\_7/test/rss/rss-assertions.rb:459:in  
`assert_atom_content' /home/shyouhei/ruby/branches/ruby_1_8_7/test/rss/rss-assertions.rb:456:in`assert\_atom\_content’  
/home/shyouhei/ruby/branches/ruby\_1\_8\_7/test/rss/test\_parser\_atom\_feed.rb:147:in  
`test\_entry\_content’]:  
\<“iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAACXBIWXMAAABIAAAASABGyWs+AAAACXZwQWcAAAABAAAAAQDHlV/tAAAADElEQVQI12P4//8/AAX+Av7czFnnAAAAAElFTkSuQmCC”\>  
expected but was  
\<“iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAACXBIWXMAAABI\nAAAASABGyWs+AAAACXZwQWcAAAABAAAAAQDHlV/tAAAADElEQVQI12P4//8/\nAAX+Av7czFnnAAAAAElFTkSuQmCC\n”\>.

285 tests, 4764 assertions, 3 failures, 0 errors  
make: \*\*\* [test-all] Error 1  
zsh: exit 2 make test-all TESTS=rss

---

<div class="post-metadata">

**Author:** ![Urabe\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/ecc23a/32.png) [@Urabe\_S](https://www.ruby-forum.com/u/Urabe_S)\
**Post date:** [April 2, 2009, 5:32am UTC](https://www.ruby-forum.com/t/1-8-7-rss-test-failure/164518/2 "2009-04-02T05:32:22Z")

</div>

e$B?\F#$G$9!#e(B

2009/04/02 11:40 Urabe S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> 1.8.7e$B$r%j%j!\<%9$G$-$F$J$$M}M3$N0l$D$Ke(BRSSe$B$N%F%9%H$,DL$i$J$$$+$i$H$$$&$N$,$“$j$^$9e(B(e$B2\<5-e(B)e$B!#e(B  
> e$B$3$l$Oe(B1.8.8deve$B$+$i%F%9%H$@$1;}$C$F$-$?$+$i$J$N$G!”$J$s$i$+BP1~$7$J$$$H$$$1$J$$$N$G$9$,!“e(B  
> (1) e$B$3$N%F%9%H$,@5$7$/$Fe(B1.8.7e$B$N5sF0$O8m$j$J$N$G$7$g$&$+!”$=$l$H$be(B  
> (2) 1.8.7e$B$O8m$j$H$O8@$($:!"%F%9%H$re(Breverte$B$9$Y$-$J$N$G$7$g$&$+!#e(B

Atome$B$G$Oe(BBase64e$B$N%G!\<%?Fb$K2~9T$,F~$C$F$be(BOKe$B$J$N$G!"\<BAu$b%F%9%H$b$I$A$i$be(BAtome$BE\*$K$O@5e(B  
e$B$7$$CM$G$9!#$J$N$G!"e(BAtome$BE\*$K$O%F%9%H$,2~9T$rL5;k$9$k$h$&$K$b$&\>/$742MF$K$J$k$N$,$h$$$He(B  
e$B;W$$$^$9!#$?$@!"e(BRSS  
Parsere$B$N%F%9%H$H$7$F$O!"8=:\_$N$h$&$K$I$A$i$+0lJ}$r7h$aBG$A$G$h$$$H;We(B  
e$B$$$^$9!#e(B

e$B$H$$$&$3$H$G!“e(B  
(3)  
r14303e$B$Ne(Blib/rss/e$B0J2\<$NItJ,$rE,MQ$7!”%F%9%H$,4|BT$7$F$$$k$h$&$K2~9T$N$J$$e(BBase64e$B$N%G!\<%?$re(B  
e$BJV$9$h$&$K$9$k!J\<BAu$N5sF0$rJQ$($ke(B:  
e$B2~9TL5$7e(BBase64e$B!Ke(B  
(4) e$B%F%9%H$G2~9T$r:o=|$7$J$$$h$&$K$9$k!J\<BAu$N5sF0$OJQ$($J$$e(B:  
e$B2~9TIU$-e(BBase64e$B!Ke(B  
e$B$N$I$A$i$+$,$h$$$H;W$$$^$9!#e(B

# Index: test/rss/rss-assertions.rb

— test/rss/rss-assertions.rb (revision 23116)  
+++ test/rss/rss-assertions.rb (working copy)  
@@ -564,7 +564,7 @@

```
     png_file = File.join(File.dirname( __FILE__ ), "dot.png")
     png = File.open(png_file, "rb") {|file| file.read}

```

- 

```
   base64_content = [png].pack("m").delete("\n")

```

- 

```
   base64_content = [png].pack("m")

   [false, true].each do |with_space|
     xml_content = base64_content

```

e$B8D?ME\*$K$Oe(B(4)e$B$,$h$$$H;W$$$^$9!#e(B

---

<div class="post-metadata">

**Author:** ![Urabe\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/ecc23a/32.png) [@Urabe\_S](https://www.ruby-forum.com/u/Urabe_S)\
**Post date:** [April 2, 2009, 7:38am UTC](https://www.ruby-forum.com/t/1-8-7-rss-test-failure/164518/3 "2009-04-02T07:38:37Z")

</div>

e$BKNIt$G$9!#e(B

Kouhei S. e$B$5$s$O=q$-$^$7$?e(B:

> Atome$B$G$Oe(BBase64e$B$N%G!\<%?Fb$K2~9T$,F~$C$F$be(BOKe$B$J$N$G!"\<BAu$b%F%9%H$b$I$A$i$be(BAtome$BE\*$K$O@5e(B  
> e$B$7$$CM$G$9!#$J$N$G!"e(BAtome$BE\*$K$O%F%9%H$,2~9T$rL5;k$9$k$h$&$K$b$&\>/$742MF$K$J$k$N$,$h$$$He(B  
> e$B;W$$$^$9!#$?$@!"e(BRSS Parsere$B$N%F%9%H$H$7$F$O!"8=:\_$N$h$&$K$I$A$i$+0lJ}$r7h$aBG$A$G$h$$$H;We(B  
> e$B$$$^$9!#e(B
> 
> e$B$H$$$&$3$H$G!“e(B  
> (3) r14303e$B$Ne(Blib/rss/e$B0J2\<$NItJ,$rE,MQ$7!”%F%9%H$,4|BT$7$F$$$k$h$&$K2~9T$N$J$$e(BBase64e$B$N%G!\<%?$re(B  
> e$BJV$9$h$&$K$9$k!J\<BAu$N5sF0$rJQ$($ke(B: e$B2~9TL5$7e(BBase64e$B!Ke(B  
> (4) e$B%F%9%H$G2~9T$r:o=|$7$J$$$h$&$K$9$k!J\<BAu$N5sF0$OJQ$($J$$e(B: e$B2~9TIU$-e(BBase64e$B!Ke(B  
> e$B$N$I$A$i$+$,$h$$$H;W$$$^$9!#e(B

e$B$"$j$,$H$&$4$6$$$^$9!#$G$O!"$$$?$@$$$?%Q%C%A$r:NMQ$9$k$3$H$K$7$^$9!#e(B
