[jruby-joni] 34/194: add more Onigmo tests
Hideki Yamane
henrich at moszumanska.debian.org
Thu Feb 1 12:04:15 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 d4fbe167b6502357a0f722d88cf58fc6c3055758
Author: Marcin Mielzynski <lopx at gazeta.pl>
Date: Tue Dec 26 20:15:44 2017 +0100
add more Onigmo tests
---
test/org/joni/test/TestU8.java | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/test/org/joni/test/TestU8.java b/test/org/joni/test/TestU8.java
index cfdf413..04ba715 100755
--- a/test/org/joni/test/TestU8.java
+++ b/test/org/joni/test/TestU8.java
@@ -203,6 +203,26 @@ public class TestU8 extends Test {
x2s("(?i)АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ", "абвгдеёжзийклмнопрстуфхцчшщъыьэюя", 0, 33 * 2);
x2s("(?i)АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ", "АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ", 0, 33 * 2);
+ ns("(?ia)\\w+", "\u212a\u017f");
+ // ns("(?ia)[\\w]+", "\u212a\u017f");
+ ns("(?ia)[^\\W]+", "\u212a\u017f");
+ // x2s("(?ia)[^\\W]+", "ks", 0, 2);
+ ns("(?iu)\\p{ASCII}", "\u212a");
+ ns("(?iu)\\P{ASCII}", "s");
+ // ns("(?iu)[\\p{ASCII}]", "\u212a");
+ // ns("(?iu)[\\P{ASCII}]", "s");
+ ns("(?ia)\\p{ASCII}", "\u212a");
+ ns("(?ia)\\P{ASCII}", "s");
+ // ns("(?ia)[\\p{ASCII}]", "\u212a");
+ // ns("(?ia)[\\P{ASCII}]", "s");
+ x2s("(?iu)[s]+", "Ss\u017f ", 0, 4);
+ x2s("(?ia)[s]+", "Ss\u017f ", 0, 4);
+ x2s("(?iu)[^s]+", "Ss\u017f ", 4, 5);
+ x2s("(?ia)[^s]+", "Ss\u017f ", 4, 5);
+ x2s("(?iu)[[:lower:]]", "\u017f", 0, 2);
+ // ns("(?ia)[[:lower:]]", "\u017f");
+ x2s("(?u)[[:upper:]]", "\u212a", 0, 3);
+ // ns("(?a)[[:upper:]]", "\u212a");
super.test();
}
--
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