summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/regex/RegexTest.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/regex/RegexTest.java b/src/regex/RegexTest.java
index 335843c..d23356a 100644
--- a/src/regex/RegexTest.java
+++ b/src/regex/RegexTest.java
@@ -41,6 +41,7 @@ public class RegexTest {
private void check(String input, boolean expectOk) {
int length = r.run(input, 0);
+ System.out.println("Testing input: " + input);
if (expectOk && length == -1 || !expectOk && length != -1) {
throw new RuntimeException("Unexpected result for " + input);
}
@@ -61,13 +62,11 @@ public class RegexTest {
reId.assertFail("Id");
reId.assertFail("0");
reId.assertFail("0d");
+ System.out.println();
}
public static void main(String[] args) {
- RegexTest exampleRegexTest = new RegexTest("aap");
- exampleRegexTest.runTest("aap_df34_d asdf sdfd", 0);
- exampleRegexTest.runTest("a_a_pasdf sdfd", 0);
-
checkId();
+ System.out.println("Passed.");
}
}