summaryrefslogtreecommitdiff
path: root/test/rexml/test_core.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/rexml/test_core.rb')
-rw-r--r--test/rexml/test_core.rb9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/rexml/test_core.rb b/test/rexml/test_core.rb
index d6d62713f0d..e781fe6e25e 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 &lt; ( 1 &amp; 1 )"
@@ -403,6 +400,12 @@ class Tester < Test::Unit::TestCase
assert_equal( '<a><b/><c/></a>', 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 = "<?xml version='1.0'?>"
# test args