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(/"/, "\"") 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