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
public ID in external ID notation declaration. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
434826c0e9
commit
a41ab7b3b6
2 changed files with 21 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Wed Jul 31 22:01:36 2013 Kouhei Sutou <kou@cozmixng.org>
|
||||
|
||||
* test/rexml/test_notationdecl_parsetest.rb: Add tests that focus
|
||||
public ID in external ID notation declaration.
|
||||
|
||||
Wed Jul 31 22:01:24 2013 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
|
||||
|
||||
* parse.y: fix build error with bison-3.0.
|
||||
|
|
|
@ -25,6 +25,22 @@ class TestNotationDecl < Test::Unit::TestCase
|
|||
|
||||
class TestExternID < self
|
||||
class TestPublic < self
|
||||
class TestPublicIDLiteral < self
|
||||
def test_single_quote
|
||||
doctype = parse(<<-INTERNAL_SUBSET)
|
||||
<!NOTATION name PUBLIC 'public-id-literal' "system-literal">
|
||||
INTERNAL_SUBSET
|
||||
assert_equal("pubilc-id-literal", doctype.notation("name").public)
|
||||
end
|
||||
|
||||
def test_double_quote
|
||||
doctype = parse(<<-INTERNAL_SUBSET)
|
||||
<!NOTATION name PUBLIC "public-id-literal" "system-literal">
|
||||
INTERNAL_SUBSET
|
||||
assert_equal("pubilc-id-literal", doctype.notation("name").public)
|
||||
end
|
||||
end
|
||||
|
||||
class TestSystemLiteral < self
|
||||
def test_single_quote
|
||||
doctype = parse(<<-INTERNAL_SUBSET)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue