Author: paultcochrane
Date: Mon Mar 26 13:47:54 2007
New Revision: 17778

Modified:
   trunk/t/codingstd/c_indent.t

Log:
[t] Added diagnostic output for the ok() sub when the tests pass.  This
gives a better idea of what the tests are doing.


Modified: trunk/t/codingstd/c_indent.t
==============================================================================
--- trunk/t/codingstd/c_indent.t        (original)
+++ trunk/t/codingstd/c_indent.t        Mon Mar 26 13:47:54 2007
@@ -160,14 +160,14 @@
     my @pp_failed_files = keys %pp_failed;
 
 ## L<PDD07/Code Formatting/"Preprocessor #directives must be indented two 
columns per nesting level, with two exceptions: neither PARROT_IN_CORE nor the 
outermost _GUARD #ifdefs cause the level of indenting to increase">
-    ok( !scalar(@pp_indent) )
+    ok( !scalar(@pp_indent), 'Correctly indented preprocessor directives' )
         or diag( "incorrect indenting in preprocessor directive found "
             . scalar @pp_indent
             . " occurrences in "
             . scalar @pp_failed_files
             . " files:[EMAIL PROTECTED]" );
 
-    ok( !scalar(@c_indent) )
+    ok( !scalar(@c_indent), 'Correctly indented C files' )
         or diag( "incorrect indenting in C file found "
             . scalar @c_indent
             . " occurrences in "

Reply via email to