|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.ObjectDFATest
public final class DFATest
extends ObjectTests for the DFA class using JUnit.
| Constructor Summary | |
|---|---|
DFATest()
|
|
| Method Summary | |
|---|---|
void |
assignmentStatementDFATest()
Construct and test a simple assignment statement checker. |
void |
astar_bDFATest()
Constructs and tests a string validator for regular expression a*b. |
void |
astar_c_abstar_c_cstarDFATest()
Construct and test a string validator for regular expression a*c(ab)*cc*. |
void |
astarDFATest()
Constructs and tests a string validator for regular expression a* over the alphabet {a, b}. |
static boolean |
regexMatch(String regexp,
String input)
Determines if java.util.regex identifies the entire input string as matching the given regular expression. |
void |
utilregexTests()
Tests using java.util.regex for comparison. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DFATest()
| Method Detail |
|---|
public void assignmentStatementDFATest()
public void astar_bDFATest()
public void astar_c_abstar_c_cstarDFATest()
public void astarDFATest()
public static boolean regexMatch(String regexp,
String input)
regexp - the regular expressioninput - the input string
public void utilregexTests()
[a-z][0-9]+ represents
identifiers that start with a single
lower-case letter which is then followed by
one or more numerals (e.g., a0 and d4298 but
not ab1 or 0a).
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||