Skip to content

Commit

Permalink
Changed calls to File::Compare::compare() to run in 'text mode' by ad…
Browse files Browse the repository at this point in the history
…ding a -1 argument. Suggested by Max, commenting on the bug in RT. bug #56642
  • Loading branch information
neilb committed Feb 12, 2012
1 parent e6a005a commit 84c6603
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions Changes
Expand Up @@ -2,6 +2,9 @@ Revision history for perl distribution Graph-ReadWrite

2.01 2012-02-12

- changed calls to File::Compare::compare() to hopefully cope with
EOL differences between Windows and Unix. Reported by Philip Potter,
and fix noted by Max
- renamed ChangeLog to Changes and reformatted as per CPAN::Changes::Spec

2.00 2005-01-02
Expand Down
2 changes: 1 addition & 1 deletion t/reader.t
Expand Up @@ -55,7 +55,7 @@ $writer = Graph::Writer::HTK->new();
if (defined($reader) && defined($writer)
&& ($ingraph = $reader->read_graph($testfile))
&& $writer->write_graph($ingraph, $genfile)
&& compare($genfile, $testfile) == 0)
&& compare($genfile, $testfile, -1) == 0)
{
print "ok 2\n";
} else {
Expand Down
10 changes: 5 additions & 5 deletions t/simple.t
Expand Up @@ -36,7 +36,7 @@ $expected = 't/data/simple.xml';
$writer = Graph::Writer::XML->new();
if (defined($writer)
&& $writer->write_graph($graph, $genfile)
&& compare($genfile, $expected) == 0)
&& compare($genfile, $expected, -1) == 0)
{
print "ok 1\n";
} else {
Expand All @@ -52,7 +52,7 @@ $expected = 't/data/simple.htk';
$writer = Graph::Writer::HTK->new();
if (defined($writer)
&& $writer->write_graph($graph, $genfile)
&& compare($genfile, $expected) == 0)
&& compare($genfile, $expected, -1) == 0)
{
print "ok 2\n";
} else {
Expand All @@ -68,7 +68,7 @@ $expected = 't/data/simple.dot';
$writer = Graph::Writer::Dot->new();
if (defined($writer)
&& $writer->write_graph($graph, $genfile)
&& compare($genfile, $expected) == 0)
&& compare($genfile, $expected, -1) == 0)
{
print "ok 3\n";
} else {
Expand All @@ -84,7 +84,7 @@ $expected = 't/data/simple.vcg';
$writer = Graph::Writer::VCG->new();
if (defined($writer)
&& $writer->write_graph($graph, $genfile)
&& compare($genfile, $expected) == 0)
&& compare($genfile, $expected, -1) == 0)
{
print "ok 4\n";
} else {
Expand All @@ -100,7 +100,7 @@ $expected = 't/data/simple.davinci';
$writer = Graph::Writer::daVinci->new();
if (defined($writer)
&& $writer->write_graph($graph, $genfile)
&& compare($genfile, $expected) == 0)
&& compare($genfile, $expected, -1) == 0)
{
print "ok 5\n";
} else {
Expand Down

0 comments on commit 84c6603

Please sign in to comment.