Debian Codegraph @

debian/patches/fixtest

raw symbols SCIP
1 Description: Fixed a test that fails due to hash randomization
2 Author: Francesco Paolo Lovergine <[email protected]>
3 Forwarded: no
4
5 --- a/t/02.kml2wkt.t
6 +++ b/t/02.kml2wkt.t
7 @@ -102,9 +102,9 @@
8 GEOMETRYCOLLECTION(LINESTRING(4 6,7 10),POINT(4 6))
9 --- expected
10 <MultiGeometry>
11 -<Point><coordinates>4,6</coordinates></Point>
12 <LineString><coordinates>4,6
13 7,10</coordinates></LineString>
14 +<Point><coordinates>4,6</coordinates></Point>
15 </MultiGeometry>
16
17 === test polygon
18 --- a/lib/Geo/Converter/WKT2KML.pm
19 +++ b/lib/Geo/Converter/WKT2KML.pm
20 @@ -121,7 +121,7 @@
21 '(' . join( '),(', map { coordbuilder($_) } @lnr ) . ')';
22 },
23 'MultiGeometry' => sub {
24 - my @key = grep { $builder->{$_} } keys %{$_[0]->[0]};
25 + my @key = grep { $builder->{$_} } sort keys %{$_[0]->[0]};
26 my $buf = join( ',', map { kml2wktbuilder( $_, $_[0]->[0]->{$_} ) } @key );
27 $buf = "GEOMETRYCOLLECTION($buf)" if ( @key > 1 );
28 $buf;