Sha256: cfb6305af2add350fe1864373b316e4f30d7f33397854ceacac865bd8492401b

Contents?: true

Size: 369 Bytes

Versions: 3

Compression:

Stored size: 369 Bytes

Contents

Dir["/dev_exclusions/dtext_bench/forum_posts/*.txt"].slice(80, 10).each do |file|
  input = File.read(file)
  o1 = DTextRagel.parse(input).gsub(/\s+<\/p>/, "</p>")
  o2 = DTextRuby.parse(input).gsub(/\r/, "").gsub(/\s+<\/p>/, "</p>").gsub(/%3A/, ":")
  if o1.size != o2.size
    puts input
    puts "---"
    puts o1
    puts "~~~"
    puts o2
    puts "==="
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dtext_rb-1.0.5 test/test_forum_posts.rb
dtext_rb-1.0.4 test/test_forum_posts.rb
dtext_rb-1.0.3 test/test_forum_posts.rb