From 50c725249e434ae89d6286827368af6d0ccea146 Mon Sep 17 00:00:00 2001 From: Watson Date: Thu, 1 Aug 2024 09:56:36 +0900 Subject: [PATCH] test: add a performance test for %...; in document declaration --- test/parse/test_document_type_declaration.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/parse/test_document_type_declaration.rb b/test/parse/test_document_type_declaration.rb index 4f020586..99c23745 100644 --- a/test/parse/test_document_type_declaration.rb +++ b/test/parse/test_document_type_declaration.rb @@ -306,5 +306,12 @@ def test_linear_performance_comment_gt REXML::Document.new("" * n + " -->]>") end end + + def test_linear_performance_external_entity_right_bracket_gt + seq = [10000, 50000, 100000, 150000, 200000] + assert_linear_performance(seq, rehearsal: 10) do |n| + REXML::Document.new("" * n + ";]>") + end + end end end