Skip Menu |

This queue is for tickets about the Search-ContextGraph CPAN distribution.

Report information
The Basics
Id: 108489
Status: open
Priority: 0/
Queue: Search-ContextGraph

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.15
Fixed in: (no value)



Subject: No pass reports with perl 5.18 and later
On Thu Nov 05 15:22:52 2015, SREZIC wrote: Show quoted text
The module test which fails: http://www.cpantesters.org/cpan/report/0d173c8e-6007-11e4-adde-df4e5fa3639d fails here: # Failed test 'Node dump did not change' # at t/invariance.t line 73. # Looks like you failed 1 test of 26. t/invariance.t ...... --- This line can be seen at this URL: https://metacpan.org/source/MCEGLOWS/Search-ContextGraph-0.15/t/invariance.t#L73 --- The code is as follows: --- my @readded = $g->dump_node( 'D:doc-4' ); #print join "\n", @readded, "\n"; #print join "\n", @original, "\n"; ok( eq_array( \@readded, \@original ), "Node dump did not change" ); --- This test relies on hash key ordering remaining the same: https://metacpan.org/source/MCEGLOWS/Search-ContextGraph-0.15/ContextGraph.pm#L1084 --- Unfortunately hash keys in Perl are no longer returned in the same order but shuffled each time, so this test is failing.
I took the liberty of putting this distribution on github and fixing the bug by sorting the arrays before comparing them. Here is the relevant commit: https://github.com/benkasminbullock/search-contextgraph/commit/b8aed1740c96267cec3c4a97f672e9bba04d2d39