http://www.mediawiki.org/wiki/Special:Code/MediaWiki/97995

Revision: 97995
Author:   jeroendedauw
Date:     2011-09-24 12:23:30 +0000 (Sat, 24 Sep 2011)
Log Message:
-----------
fixed broken test

Modified Paths:
--------------
    trunk/extensions/Maps/test/MapsDistanceParserTest.php

Modified: trunk/extensions/Maps/test/MapsDistanceParserTest.php
===================================================================
--- trunk/extensions/Maps/test/MapsDistanceParserTest.php       2011-09-24 
12:15:01 UTC (rev 97994)
+++ trunk/extensions/Maps/test/MapsDistanceParserTest.php       2011-09-24 
12:23:30 UTC (rev 97995)
@@ -92,9 +92,10 @@
                );
                
                foreach( array_merge( $conversions, array_reverse( $conversions 
) ) as $source => $target ) {
+                       global $wgContLang;
                        $unit = explode( ' ', $target, 2 );
                        $unit = $unit[1];
-                       $this->assertEquals( $target, 
MapsDistanceParser::parseAndFormat( $source, $unit ), "'$source' was not parsed 
and formatted to '$target':" );
+                       $this->assertEquals( $wgContLang->formatNum( $target ), 
MapsDistanceParser::parseAndFormat( $source, $unit ), "'$source' was not parsed 
and formatted to '$target':" );
                }
        }
        


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to