* Using the percent function
authorÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Sat, 16 Jul 2005 22:01:47 +0000 (22:01 +0000)
committerÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Sat, 16 Jul 2005 22:01:47 +0000 (22:01 +0000)
maintenance/parserTests.inc

index 0d797b2..8cb6510 100644 (file)
@@ -188,8 +188,8 @@ class ParserTest {
                        }
                }
                if( $total > 0 ) {
-                       $ratio = sprintf( "%.2f", 100 * $success / $total );
-                       print $this->termColor( 1 ) . "\nPassed $success of $total tests ($ratio%) ";
+                       $ratio = percent( 100 * $success / $total );
+                       print $this->termColor( 1 ) . "\nPassed $success of $total tests ($ratio) ";
                        if( $success == $total ) {
                                print $this->termColor( 32 ) . "PASSED!";
                        } else {