[jruby-joni] 12/31: fix errors
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 f1c37bdf26ac33e551473753ec0c584c79960cf7
Author: lopex <lopx at gazeta.pl>
Date: Fri Feb 2 10:54:39 2018 +0100
fix errors
---
test/org/joni/test/Test.java | 2 ++
test/org/joni/test/TestError.java | 10 +++++-----
2 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/test/org/joni/test/Test.java b/test/org/joni/test/Test.java
index 2412e12..fe90317 100644
--- a/test/org/joni/test/Test.java
+++ b/test/org/joni/test/Test.java
@@ -83,7 +83,9 @@ public abstract class Test {
public void xerr(byte[] pattern, String msg, int option) throws Exception {
try {
new Regex(pattern, 0, length(pattern), option, encoding(), syntax(), WarnCallback.NONE);
+ nfail++;
} catch (JOniException je) {
+ nsucc++;
assertEquals(je.getMessage(), msg);
}
}
diff --git a/test/org/joni/test/TestError.java b/test/org/joni/test/TestError.java
index 4276174..e0f1347 100755
--- a/test/org/joni/test/TestError.java
+++ b/test/org/joni/test/TestError.java
@@ -26,27 +26,27 @@ import org.jcodings.Encoding;
import org.jcodings.specific.ASCIIEncoding;
public class TestError extends Test {
- @Override
+ @Override
public int option() {
return Option.DEFAULT;
}
- @Override
+ @Override
public Encoding encoding() {
return ASCIIEncoding.INSTANCE;
}
- @Override
+ @Override
public String testEncoding() {
return "iso-8859-2";
}
- @Override
+ @Override
public Syntax syntax() {
return Syntax.TEST;
}
- @Override
+ @Override
public void test() throws Exception {
xerrs("(", ErrorMessages.ERR_END_PATTERN_WITH_UNMATCHED_PARENTHESIS);
xerrs("(0?0|(?(1)||)|(?(1)||))?", ErrorMessages.ERR_INVALID_CONDITION_PATTERN);
--
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