Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
Watson1978 committed Jul 16, 2024
1 parent bb274bc commit a2a8fb1
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions test/parse/test_character_reference.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,10 @@ module REXMLTests
class TestParseCharacterReference < Test::Unit::TestCase
include Test::Unit::CoreAssertions

def test_gt_linear_performance_malformed_character_reference
def test_gt_linear_performance_character_reference
seq = [10000, 50000, 100000, 150000, 200000]
assert_linear_performance(seq, rehearsal: 10) do |n|
begin
REXML::Document.new('<test testing="&#' + "0" * n + '"/>')
rescue
end
REXML::Document.new('<test testing="&#' + "0" * n + '97;"/>')
end
end
end
Expand Down

0 comments on commit a2a8fb1

Please sign in to comment.