mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rss: supported prety print.
* test/rss/test_1.0.rb: added test for calculating default indent size. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
64422ae494
commit
0ebac90b0e
8 changed files with 210 additions and 154 deletions
|
@ -254,6 +254,17 @@ module RSS
|
|||
end
|
||||
|
||||
end
|
||||
|
||||
|
||||
def test_indent_size
|
||||
assert_equal(0, RDF.indent_size)
|
||||
assert_equal(1, RDF::Channel.indent_size)
|
||||
assert_equal(2, RDF::Channel::Image.indent_size)
|
||||
assert_equal(2, RDF::Channel::Textinput.indent_size)
|
||||
assert_equal(2, RDF::Channel::Items.indent_size)
|
||||
assert_equal(1, RDF::Image.indent_size)
|
||||
assert_equal(1, RDF::Item.indent_size)
|
||||
assert_equal(1, RDF::Textinput.indent_size)
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue