зеркало из https://github.com/github/ruby.git
* 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
This commit is contained in:
Родитель
7bb29d4b32
Коммит
40e7d79391
|
@ -1,3 +1,8 @@
|
|||
Fri May 27 23:56:54 2011 Kouhei Sutou <kou@cozmixng.org>
|
||||
|
||||
* test/rexml/test_core.rb (Tester::test_text_frozen): split frozen
|
||||
string test. refs #4783
|
||||
|
||||
Fri May 27 22:46:23 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* tool/rbinstall.rb (gem): install gemspec of json. fixed #4784
|
||||
|
|
|
@ -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( '<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
|
||||
|
|
Загрузка…
Ссылка в новой задаче