From 11dc1b1430175d69713284ca936809ca8ca819b4 Mon Sep 17 00:00:00 2001 From: Sutou Kouhei Date: Thu, 1 Aug 2024 09:51:30 +0900 Subject: [PATCH] test: fix location --- test/parse/test_document_type_declaration.rb | 34 ++++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/test/parse/test_document_type_declaration.rb b/test/parse/test_document_type_declaration.rb index 490a27d4..d30640b8 100644 --- a/test/parse/test_document_type_declaration.rb +++ b/test/parse/test_document_type_declaration.rb @@ -280,23 +280,6 @@ def test_notation_attlist doctype.children.collect(&:class)) end - def test_linear_performance_percent_gt - seq = [10000, 50000, 100000, 150000, 200000] - assert_linear_performance(seq, rehearsal: 10) do |n| - begin - REXML::Document.new('" * n + ']>') - rescue - end - end - end - - def test_linear_performance_comment_gt - seq = [10000, 50000, 100000, 150000, 200000] - assert_linear_performance(seq, rehearsal: 10) do |n| - REXML::Document.new('" * n + ' -->]>') - end - end - private def parse(internal_subset) super(<<-DOCTYPE) @@ -306,5 +289,22 @@ def parse(internal_subset) DOCTYPE end end + + def test_linear_performance_percent_gt + seq = [10000, 50000, 100000, 150000, 200000] + assert_linear_performance(seq, rehearsal: 10) do |n| + begin + REXML::Document.new('" * n + ']>') + rescue + end + end + end + + def test_linear_performance_comment_gt + seq = [10000, 50000, 100000, 150000, 200000] + assert_linear_performance(seq, rehearsal: 10) do |n| + REXML::Document.new('" * n + ' -->]>') + end + end end end