1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/rexml/test_notationdecl_parsetest.rb: Add tests that focus

system literal in external ID system notation declaration.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kou 2013-07-31 13:52:06 +00:00
parent 621d2b3d6c
commit 7f6c69b142
2 changed files with 21 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Wed Jul 31 22:50:51 2013 Kouhei Sutou <kou@cozmixng.org>
* test/rexml/test_notationdecl_parsetest.rb: Add tests that focus
system literal in external ID system notation declaration.
Wed Jul 31 22:36:21 2013 Tanaka Akira <akr@fsij.org>
* bignum.c (bary_cmp): Extracted from rb_big_cmp.

View file

@ -24,6 +24,22 @@ class TestNotationDecl < Test::Unit::TestCase
end
class TestExternalID < self
class TestSystem < self
def test_single_quote
doctype = parse(<<-INTERNAL_SUBSET)
<!NOTATION name SYSTEM 'system-literal'>
INTERNAL_SUBSET
assert_equal("system-literal", doctype.notation("name").system)
end
def test_double_quote
doctype = parse(<<-INTERNAL_SUBSET)
<!NOTATION name SYSTEM "system-literal">
INTERNAL_SUBSET
assert_equal("system-literal", doctype.notation("name").system)
end
end
class TestPublic < self
class TestPublicIDLiteral < self
def test_single_quote