Sha256: 71cb65afeba6a97b6a40f4cc4cb42c6be8a3db421c368dbdd8ff6deb965a8b34

Contents?: true

Size: 385 Bytes

Versions: 11

Compression:

Stored size: 385 Bytes

Contents

Dir["/dev_exclusions/dtext_bench/wiki_pages/*.txt"].sort.slice(10, 10).each do |file|
  input = File.read(file)
  o1 = DTextRagel.parse(input.dup).gsub(/\s+<\/p>/, "</p>").gsub(/&quot;/, "\"")
  o2 = DTextRuby.parse(input.dup).gsub(/\r/, "").gsub(/\s+<\/p>/, "</p>")
  if o1.size != o2.size
    puts input
    puts "---"
    puts o1
    puts "~~~"
    puts o2
    puts "==="
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
dtext_rb-1.3.0 test/test_wiki_pages.rb
dtext_rb-1.2.0 test/test_wiki_pages.rb
dtext_rb-1.0.14 test/test_wiki_pages.rb
dtext_rb-1.0.13 test/test_wiki_pages.rb
dtext_rb-1.0.12 test/test_wiki_pages.rb
dtext_rb-1.0.11 test/test_wiki_pages.rb
dtext_rb-1.0.10 test/test_wiki_pages.rb
dtext_rb-1.0.9 test/test_wiki_pages.rb
dtext_rb-1.0.8 test/test_wiki_pages.rb
dtext_rb-1.0.7 test/test_wiki_pages.rb
dtext_rb-1.0.6 test/test_wiki_pages.rb