Skip to content

Commit

Permalink
test: use double quote for string literal
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Aug 1, 2024
1 parent 11dc1b1 commit 163d366
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parse/test_document_type_declaration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ def test_linear_performance_percent_gt
seq = [10000, 50000, 100000, 150000, 200000]
assert_linear_performance(seq, rehearsal: 10) do |n|
begin
REXML::Document.new('<!DOCTYPE root [' + "%>" * n + ']><test/>')
REXML::Document.new("<!DOCTYPE root [" + "%>" * n + "]><test/>")
rescue
end
end
Expand All @@ -303,7 +303,7 @@ def test_linear_performance_percent_gt
def test_linear_performance_comment_gt
seq = [10000, 50000, 100000, 150000, 200000]
assert_linear_performance(seq, rehearsal: 10) do |n|
REXML::Document.new('<!DOCTYPE root [<!-- ' + ">" * n + ' -->]>')
REXML::Document.new("<!DOCTYPE root [<!-- " + ">" * n + " -->]>")
end
end
end
Expand Down

0 comments on commit 163d366

Please sign in to comment.