From 40e7d793917c1c00fed590814d401ffd1d341991 Mon Sep 17 00:00:00 2001 From: kou Date: Fri, 27 May 2011 14:57:55 +0000 Subject: * test/rexml/test_core.rb (Tester::test_text_frozen): split frozen string test. refs #4783 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/rexml/test_core.rb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'test/rexml') diff --git a/test/rexml/test_core.rb b/test/rexml/test_core.rb index d6d62713f0..e781fe6e25 100644 --- a/test/rexml/test_core.rb +++ b/test/rexml/test_core.rb @@ -349,9 +349,6 @@ class Tester < Test::Unit::TestCase assert_equal(string, text.to_s) text2 = Text.new(text) assert_equal(text, text2) - string = "Frozen".freeze - text3 = Text.new(string) - assert_equal(string, text3.to_s) #testing substitution string = "0 < ( 1 & 1 )" correct = "0 < ( 1 & 1 )" @@ -403,6 +400,12 @@ class Tester < Test::Unit::TestCase assert_equal( '', doc.to_s ) end + def test_text_frozen + string = "Frozen".freeze + text = Text.new(string) + assert_equal(string, text.to_s) + end + def test_xmldecl source = "" # test args -- cgit v1.2.3