Subject: | Bad result with very long string |
Hello
Given the 2 attached files, gnu diff returns:
$ diff -u orig.txt new.txt
--- orig.txt 2015-10-16 13:14:32.972453163 +0200
+++ new.txt 2015-10-16 13:14:32.976453179 +0200
@@ -26,7 +26,7 @@
If publications result from research using this SOFTWARE, we ask that
CSHL be acknowledged and/or credit be given to CSHL scientists, as
scientifically appropriate." -
-Files:"lib/Bio/Graphics/Glyph/rndrect.pm
+Files:"lib/Bio/Graphics/Glyph/rndrect.pm
lib/Bio/Graphics/Glyph/splice_site.pm
lib/Bio/Graphics/Glyph/extending_arrow.pm"
Copyright="© 2001 Berkeley Drosophila Genome Project"
But Test::Differences report that one of the files is empty:
$ perl -MTest::More -MTest::Differences -MPath::Tiny -E 'unified_diff; eq_or_diff(map {path($_)->slurp_utf8;} qw/orig.txt new.txt/);'
not ok 1
# Failed test at -e line 1.
# --- Got
# +++ Expected
# @@ -1 +1 @@
# -"Source=http://search.cpan.org/CPAN/authors/id/L/LD/LDS/Bio-Graphics-2.24.gz\nCommen [etc]
I've truncated the output of the "Expected" string for readability.
All the best
Subject: | new.txt |
Message body is not shown because it is too large.
Subject: | orig.txt |
Message body is not shown because it is too large.