[jruby-joni] 188/194: test for specialized CCLASS_MIX_NOT

Hideki Yamane henrich at moszumanska.debian.org
Thu Feb 1 12:04:40 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 cf9761ac69e2f2a6dbf185f655cb050195b4adde
Author: Marcin Mielzynski <lopx at gazeta.pl>
Date:   Thu Jan 25 18:54:14 2018 +0100

    test for specialized CCLASS_MIX_NOT
---
 test/org/joni/test/Test.java   | 2 +-
 test/org/joni/test/TestU8.java | 6 ++++++
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/test/org/joni/test/Test.java b/test/org/joni/test/Test.java
index ed961b9..b394de9 100644
--- a/test/org/joni/test/Test.java
+++ b/test/org/joni/test/Test.java
@@ -100,7 +100,7 @@ public abstract class Test {
 
         int r = 0;
         try {
-            r = m.searchInterruptible(0, length(str), Option.NONE);
+            r = m.searchInterruptible(0, length(str), option);
             region = m.getEagerRegion();
         } catch (JOniException je) {
             Config.err.println("Pattern: " + reprTest(pattern, str, option));
diff --git a/test/org/joni/test/TestU8.java b/test/org/joni/test/TestU8.java
index 148a60c..6f33a2b 100755
--- a/test/org/joni/test/TestU8.java
+++ b/test/org/joni/test/TestU8.java
@@ -317,5 +317,11 @@ public class TestU8 extends Test {
         x2s("𠜎?𠜱", "𠜎𠜱", 0, 8);
         x2s("𠜎*𠜱", "𠜎𠜱", 0, 8);
         x2s("𠜎{3}", "𠜎𠜎𠜎", 0, 12);
+
+        x2s("[^a\\x{80}]", "x", 0, 1);
+        ns("[^a\\x{80}]", "a");
+        x2s("[^a\\x{80}]", "x", 0, 1, Option.CR_7_BIT);
+        ns("[^a\\x{80}]", "a", Option.CR_7_BIT);
+
     }
 }

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