Skip to content

Commit

Permalink
Use valid XML in performance test
Browse files Browse the repository at this point in the history
  • Loading branch information
Watson1978 committed Jul 19, 2024
1 parent f946711 commit 36ba79e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions test/parse/test_entity_declaration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,7 @@ def test_empty
def test_linear_performance_gt
seq = [10000, 50000, 100000, 150000, 200000]
assert_linear_performance(seq, rehearsal: 10) do |n|
begin
REXML::Document.new('<!DOCTYPE rubynet [<!ENTITY rbconfig.ruby_version "' + '>' * n + '">')
rescue
end
REXML::Document.new('<!DOCTYPE rubynet [<!ENTITY rbconfig.ruby_version "' + '>' * n + '">]>')
end
end
end
Expand Down

0 comments on commit 36ba79e

Please sign in to comment.