[jruby-joni] 21/31: more validation tests
Hideki Yamane
henrich at moszumanska.debian.org
Sat Feb 24 10:44:59 UTC 2018
This is an automated email from the git hooks/post-receive script.
henrich pushed a commit to branch debian/sid
in repository jruby-joni.
commit e542bd56a32309278dac14222311d7893db62d62
Author: Marcin Mielzynski <lopx at gazeta.pl>
Date: Fri Feb 2 18:42:01 2018 +0100
more validation tests
---
test/org/joni/test/TestError.java | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/test/org/joni/test/TestError.java b/test/org/joni/test/TestError.java
index f052ace..246cd33 100755
--- a/test/org/joni/test/TestError.java
+++ b/test/org/joni/test/TestError.java
@@ -86,5 +86,12 @@ public class TestError extends Test {
// xerrs("\\k<1-1/>", ErrorMessages.ERR_INVALID_GROUP_NAME.replace("%n", "1-1/>"));
// xerrs("\\k<a/>", ErrorMessages.ERR_INVALID_CHAR_IN_GROUP_NAME.replace("%n", "a/"));
+ xerrs("*", ErrorMessages.ERR_TARGET_OF_REPEAT_OPERATOR_NOT_SPECIFIED);
+ xerrs("{1}", ErrorMessages.ERR_TARGET_OF_REPEAT_OPERATOR_NOT_SPECIFIED);
+
+ xerrs("(?<a>a)(?<a>b)\\g<a>", ErrorMessages.ERR_MULTIPLEX_DEFINITION_NAME_CALL.replace("%n", "a"));
+
+ xerrs("(a)?(?<n>b)?(?(1)a)(?(<n>)b)", ErrorMessages.ERR_NUMBERED_BACKREF_OR_CALL_NOT_ALLOWED);
+
}
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/jruby-joni.git
More information about the pkg-java-commits
mailing list