[jruby-joni] 24/31: dedup tests for singlebyte

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 3e7a38bac791bafa2097c61f135fa66cf63510ac
Author: Marcin Mielzynski <lopx at gazeta.pl>
Date:   Fri Feb 2 22:15:29 2018 +0100

    dedup tests for singlebyte
---
 test/org/joni/test/Test.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/org/joni/test/Test.java b/test/org/joni/test/Test.java
index 88c1a88..ac598e4 100644
--- a/test/org/joni/test/Test.java
+++ b/test/org/joni/test/Test.java
@@ -125,7 +125,7 @@ public abstract class Test {
             return Matcher.FAILED;
         }
 
-        if (encoding().isAsciiCompatible() && is7bit(str, 0, str.length)) {
+        if ((!encoding().isSingleByte()) && encoding().isAsciiCompatible() && is7bit(str, 0, str.length)) {
             check(reg, pattern, str, option | Option.CR_7_BIT, from, to, mem, not);
         }
 

-- 
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