[jruby-joni] 13/31: add conditional expression tests
Hideki Yamane
henrich at moszumanska.debian.org
Sat Feb 24 10:44:58 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 73380870ec5a9a60126cc6663ca6bd1e3ca0c53e
Author: lopex <lopx at gazeta.pl>
Date: Fri Feb 2 11:49:32 2018 +0100
add conditional expression tests
---
test/org/joni/test/TestA.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/test/org/joni/test/TestA.java b/test/org/joni/test/TestA.java
index a01a6af..a3248cf 100644
--- a/test/org/joni/test/TestA.java
+++ b/test/org/joni/test/TestA.java
@@ -23,6 +23,7 @@ import org.jcodings.Encoding;
import org.jcodings.specific.ASCIIEncoding;
import org.joni.Option;
import org.joni.Syntax;
+import org.joni.exception.ErrorMessages;
public class TestA extends Test {
@Override
@@ -526,6 +527,9 @@ public class TestA extends Test {
x2s("((?<x>x)|(?<y>y))(?(<x>)y|x)", "yx", 0, 2);
ns("((?<x>x)|(?<y>y))(?(<x>)y|x)", "xx");
ns("((?<x>x)|(?<y>y))(?(<x>)y|x)", "yy");
+ xerrs("(a)?(?<n>b)?(?(1)a)(?(<n>)b)", ErrorMessages.ERR_NUMBERED_BACKREF_OR_CALL_NOT_ALLOWED);
+ xerrs("()(?(2))", ErrorMessages.ERR_INVALID_BACKREF);
+ xerrs("(?(700000))", ErrorMessages.ERR_INVALID_BACKREF);
x2s("\\R", "\n", 0, 1);
x2s("\\R", "\r", 0, 1);
--
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