Permalink
Browse files

Add some basic docs to pir_error_output_like

  • Loading branch information...
leto committed Sep 6, 2009
1 parent 73135aa commit d6f9356353b66306b5b1a9915c8b19c45f59cade
Showing with 6 additions and 4 deletions.
  1. +6 −4 runtime/parrot/library/Test/More.pir
@@ -66,12 +66,12 @@ This class defines the following functions:
.namespace [ 'Test'; 'More' ]
.sub _initialize :load
- .local pmc test
- get_hll_global test, [ 'Test'; 'More' ], '_test'
- unless null test goto done
load_bytecode 'Test/Builder.pbc'
+ .local pmc test
+ get_hll_global test, [ 'Test'; 'More' ], '_test'
+ unless null test goto done
test = new [ 'Test'; 'Builder' ]
set_hll_global [ 'Test'; 'More' ], '_test', test
@@ -818,7 +818,9 @@ This handles comparisons of array-like and hash-like structures.
.return( equal )
.end
-=item C<pir_error_output_like( target, pattern, description )>
+=item C<pir_error_output_like( codestring, pattern, description )>
+
+Takes PIR code in C<codestring> and a pattern to match, as well as an optional description. Passes if the codestring throws an error that matches the pattern, false otherwise.
=cut

0 comments on commit d6f9356

Please sign in to comment.