From 77b23ae99ccc6b9cc2ed0dee8744b50579d69019 Mon Sep 17 00:00:00 2001 From: Watson Date: Tue, 23 Jul 2024 11:33:33 +0900 Subject: [PATCH] Remove redundant test class --- test/parse/test_entity_declaration.rb | 32 +++++++++++++-------------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/test/parse/test_entity_declaration.rb b/test/parse/test_entity_declaration.rb index ac72d30b..e2225439 100644 --- a/test/parse/test_entity_declaration.rb +++ b/test/parse/test_entity_declaration.rb @@ -145,34 +145,32 @@ class TestParsedEntityDeclaration < self class ParsedEntityDefinition < self # https://www.w3.org/TR/2006/REC-xml11-20060816/#NT-PEDef class TestEntityValue < self - class TestEntityValue < self - def test_no_quote - # https://www.w3.org/TR/2006/REC-xml11-20060816/#NT-EntityValue - exception = assert_raise(REXML::ParseException) do - REXML::Document.new(' ]>') - end - assert_equal(<<-DETAIL.chomp, exception.to_s) + def test_no_quote + # https://www.w3.org/TR/2006/REC-xml11-20060816/#NT-EntityValue + exception = assert_raise(REXML::ParseException) do + REXML::Document.new(' ]>') + end + assert_equal(<<-DETAIL.chomp, exception.to_s) Malformed entity declaration Line: 1 Position: 63 Last 80 unconsumed characters: % valid-name invalid-entity-value > ]> - DETAIL - end + DETAIL + end - def test_invalid_entity_value - # https://www.w3.org/TR/2006/REC-xml11-20060816/#NT-EntityValue - exception = assert_raise(REXML::ParseException) do - REXML::Document.new(' ]>') - end - assert_equal(<<-DETAIL.chomp, exception.to_s) + def test_invalid_entity_value + # https://www.w3.org/TR/2006/REC-xml11-20060816/#NT-EntityValue + exception = assert_raise(REXML::ParseException) do + REXML::Document.new(' ]>') + end + assert_equal(<<-DETAIL.chomp, exception.to_s) Malformed entity declaration Line: 1 Position: 48 Last 80 unconsumed characters: % valid-name \"% &\" > ]> - DETAIL - end + DETAIL end end