# File test/entity.rb, line 8
 def test_parse_general_decl
		simple = "<!ENTITY foo 'bar'>"
		simple =~ /#{REXML::Entity::GEDECL}/
		assert_not_nil $&
		assert_equals simple, $&
		
		REXML::Entity::ENTITYDECL =~ simple
		assert REXML::Entity::matches?(simple)
		match = REXML::Entity::ENTITYDECL.match(simple)
		assert_equals 'foo', match[1]
		assert_equals "'bar'", match[2]

		simple = '<!ENTITY Pub-Status 
		"This is a pre-release of the specification.">'
		assert REXML::Entity::matches?(simple)
		match = REXML::Entity::ENTITYDECL.match(simple)
		assert_equals 'Pub-Status', match[1]
		assert_equals '"This is a pre-release of the specification."', match[2]

		txt = '"This is a 
		pre-release of <the> specification."'
		simple = "<!ENTITY 		Pub-Status 
		#{txt}>"
		assert REXML::Entity::matches?(simple)
		match = REXML::Entity::ENTITYDECL.match(simple)
		assert_equals 'Pub-Status', match[1]
		assert_equals txt, match[2]
	end