summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-10-16 04:39:58 +0000
committerkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-10-16 04:39:58 +0000
commita8a5ae6ad024a16286d589dabe600558654dd3fd (patch)
tree0411eee34ca110036f249f0da0f84e9130c82923 /test
parent78a8490fbe0e34afed2d70747cd220950280c1bc (diff)
downloadruby-a8a5ae6ad024a16286d589dabe600558654dd3fd.tar.gz
ruby-a8a5ae6ad024a16286d589dabe600558654dd3fd.tar.xz
ruby-a8a5ae6ad024a16286d589dabe600558654dd3fd.zip
* lib/rss: supported prety print.
* test/rss/test_1.0.rb: added test for calculating default indent size. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/rss/test_1.0.rb13
1 files changed, 12 insertions, 1 deletions
diff --git a/test/rss/test_1.0.rb b/test/rss/test_1.0.rb
index 6ed4d90b1..0ea3e884d 100644
--- a/test/rss/test_1.0.rb
+++ b/test/rss/test_1.0.rb
@@ -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