Author: bernhard
Date: Thu Nov 27 11:32:45 2008
New Revision: 33275

Modified:
   trunk/languages/pipp/Test.php
   trunk/languages/pipp/t/in_php/array.t

Log:
[Pipp] Fix the logic in proclaim() and fix incorrect test


Modified: trunk/languages/pipp/Test.php
==============================================================================
--- trunk/languages/pipp/Test.php       (original)
+++ trunk/languages/pipp/Test.php       Thu Nov 27 11:32:45 2008
@@ -23,9 +23,10 @@
 }
 
 function proclaim($cond, $desc, $count) {
-    if ( $cond ) {
-        echo "ok $count - $desc\n";  
+    if ( ! $cond ) {
+       echo 'not ';
     }
+    echo "ok $count - $desc\n";  
 }
 
 ?>

Modified: trunk/languages/pipp/t/in_php/array.t
==============================================================================
--- trunk/languages/pipp/t/in_php/array.t       (original)
+++ trunk/languages/pipp/t/in_php/array.t       Thu Nov 27 11:32:45 2008
@@ -49,7 +49,7 @@
 is( $thrice[2], 6, "thrice[2]", $count);
 $count++;
 
-is( "3 times 3 equals $thrice[3]", "3 time 3 equals 9", "3 times 3 equals 9", 
$count);
+is( "3 times 3 equals $thrice[3]", "3 times 3 equals 9", "3 times 3 equals 9", 
$count);
 $count++;
 
 is( count($hello), 3, 'count of $hello', $count );

Reply via email to