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
commitb84c17591829c9f359fe806a9f57e9c99c662f9c (patch)
tree4e0e2233ffd5cc0a5e1052471c41d5f3d3172d6e /test
parent8c3ebed1d8584d9c8462d030500acd760b3c1d21 (diff)
downloadruby-b84c17591829c9f359fe806a9f57e9c99c662f9c.tar.gz
ruby-b84c17591829c9f359fe806a9f57e9c99c662f9c.tar.xz
ruby-b84c17591829c9f359fe806a9f57e9c99c662f9c.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/trunk@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