From 43f944dcf19943e9ca6a44c9a021de9eb5d60be1 Mon Sep 17 00:00:00 2001 From: kou Date: Wed, 31 Jul 2013 12:59:28 +0000 Subject: * test/rexml/test_notationdecl_parsetest.rb: Split test patterns. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42281 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/rexml/test_notationdecl_parsetest.rb | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) (limited to 'test/rexml/test_notationdecl_parsetest.rb') diff --git a/test/rexml/test_notationdecl_parsetest.rb b/test/rexml/test_notationdecl_parsetest.rb index 2f0836c817..27433c8626 100644 --- a/test/rexml/test_notationdecl_parsetest.rb +++ b/test/rexml/test_notationdecl_parsetest.rb @@ -24,13 +24,22 @@ class TestNotationDecl < Test::Unit::TestCase end class TestExternID < self - def test_notation - doctype = parse(<<-INTERNAL_SUBSET) - - - INTERNAL_SUBSET - assert(doctype.notation('n1'), "Testing notation n1") - assert(doctype.notation('n2'), "Testing notation n2") + class TestPublic < self + class TestSystemLiteral < self + def test_single_quote + doctype = parse(<<-INTERNAL_SUBSET) + + INTERNAL_SUBSET + assert_equal("system-literal", doctype.notation("name").system) + end + + def test_double_quote + doctype = parse(<<-INTERNAL_SUBSET) + + INTERNAL_SUBSET + assert_equal("system-literal", doctype.notation("name").system) + end + end end end end -- cgit v1.2.3