r97995 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r97994‎ | r97995 | r97996 >
Date:12:23, 24 September 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
fixed broken test
Modified paths:
  • /trunk/extensions/Maps/test/MapsDistanceParserTest.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Maps/test/MapsDistanceParserTest.php
@@ -92,9 +92,10 @@
9393 );
9494
9595 foreach( array_merge( $conversions, array_reverse( $conversions ) ) as $source => $target ) {
 96+ global $wgContLang;
9697 $unit = explode( ' ', $target, 2 );
9798 $unit = $unit[1];
98 - $this->assertEquals( $target, MapsDistanceParser::parseAndFormat( $source, $unit ), "'$source' was not parsed and formatted to '$target':" );
 99+ $this->assertEquals( $wgContLang->formatNum( $target ), MapsDistanceParser::parseAndFormat( $source, $unit ), "'$source' was not parsed and formatted to '$target':" );
99100 }
100101 }
101102