| |
|
| java.lang.Object org.apache.regexp.RETest
RETest | public class RETest (Code) | | Data driven (and optionally interactive) testing harness to exercise regular
expression compiler and matching engine.
author: Jonathan Locke author: Jon S. Stevens version: $Id: RETest.java,v 1.1.1.1 2002/01/31 03:14:36 rcm Exp $ |
re1Instructions | char[] re1Instructions(Code) | | |
showSuccesses | final static boolean showSuccesses(Code) | | |
RETest | public RETest()(Code) | | Constructor
|
RETest | public RETest(String[] arg)(Code) | | Constructor for test
Parameters: arg - Command line arguments |
die | void die(String s)(Code) | | Exit with a fatal error.
Parameters: s - Last famous words before exiting |
fail | void fail(String s)(Code) | | Fail with an error
Parameters: s - Failure description |
main | public static void main(String[] arg)(Code) | | Main program entrypoint. If an argument is given, it will be compiled
and interactive matching will ensue. If no argument is given, the
file RETest.txt will be used as automated testing input.
Parameters: arg - Command line arguments (optional regular expression) |
runAutomatedTests | void runAutomatedTests(String testDocument) throws Exception(Code) | | Run automated tests in RETest.txt file (from Perl 4.0 test battery)
exception: Exception - thrown in case of error |
runInteractiveTests | void runInteractiveTests(String expr)(Code) | | Compile and test matching against a single expression
Parameters: expr - Expression to compile and test |
say | void say(String s)(Code) | | Say something to standard out
Parameters: s - What to say |
show | void show()(Code) | | Show an expression
|
showParens | void showParens(RE r)(Code) | | Dump parenthesized subexpressions found by a regular expression matcher object
Parameters: r - Matcher object with results to show |
success | void success(String s)(Code) | | Show a success
Parameters: s - Success story |
test | public static boolean test() throws Exception(Code) | | Testing entrypoint.
Parameters: arg - Command line arguments exception: Exception - thrown in case of error |
|
|
|