summaryrefslogtreecommitdiff
path: root/test/rexml/parse/test_document_type_declaration.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2020-01-11 21:37:00 +0900
committerSHIBATA Hiroshi <hsbt@ruby-lang.org>2020-01-12 12:28:29 +0900
commitc3ccf23d5807f2ff20127bf5e42df0977bf672fb (patch)
treed3953c32b61645c7af65d30e626af944f143cf58 /test/rexml/parse/test_document_type_declaration.rb
parent012f297311817ecb19f78c55854b033bb4b0397c (diff)
Make rexml library to the bundle gems
[Feature #16485][ruby-core:96683]
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/2832
Diffstat (limited to 'test/rexml/parse/test_document_type_declaration.rb')
-rw-r--r--test/rexml/parse/test_document_type_declaration.rb50
1 files changed, 0 insertions, 50 deletions
diff --git a/test/rexml/parse/test_document_type_declaration.rb b/test/rexml/parse/test_document_type_declaration.rb
deleted file mode 100644
index 80f70888fb..0000000000
--- a/test/rexml/parse/test_document_type_declaration.rb
+++ /dev/null
@@ -1,50 +0,0 @@
-# frozen_string_literal: false
-require "test/unit"
-require "rexml/document"
-
-module REXMLTests
- class TestParseDocumentTypeDeclaration < Test::Unit::TestCase
- private
- def xml(internal_subset)
- <<-XML
-<!DOCTYPE r SYSTEM "urn:x-rexml:test" [
-#{internal_subset}
-]>
-<r/>
- XML
- end
-
- def parse(internal_subset)
- REXML::Document.new(xml(internal_subset)).doctype
- end
-
- class TestMixed < self
- def test_entity_element
- doctype = parse(<<-INTERNAL_SUBSET)
-<!ENTITY entity-name "entity content">
-<!ELEMENT element-name EMPTY>
- INTERNAL_SUBSET
- assert_equal([REXML::Entity, REXML::ElementDecl],
- doctype.children.collect(&:class))
- end
-
- def test_attlist_entity
- doctype = parse(<<-INTERNAL_SUBSET)
-<!ATTLIST attribute-list-name attribute-name CDATA #REQUIRED>
-<!ENTITY entity-name "entity content">
- INTERNAL_SUBSET
- assert_equal([REXML::AttlistDecl, REXML::Entity],
- doctype.children.collect(&:class))
- end
-
- def test_notation_attlist
- doctype = parse(<<-INTERNAL_SUBSET)
-<!NOTATION notation-name SYSTEM "system-literal">
-<!ATTLIST attribute-list-name attribute-name CDATA #REQUIRED>
- INTERNAL_SUBSET
- assert_equal([REXML::NotationDecl, REXML::AttlistDecl],
- doctype.children.collect(&:class))
- end
- end
- end
-end