[jruby-joni] 118/194: more passing absent operator tests
Hideki Yamane
henrich at moszumanska.debian.org
Thu Feb 1 12:04:33 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 f9ca170aa863ee0f8b36ff0fce35905acdf03fdb
Author: lopex <lopx at gazeta.pl>
Date: Mon Jan 8 14:16:34 2018 +0100
more passing absent operator tests
---
test/org/joni/test/TestU8.java | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/test/org/joni/test/TestU8.java b/test/org/joni/test/TestU8.java
index 9782d85..97aa18c 100755
--- a/test/org/joni/test/TestU8.java
+++ b/test/org/joni/test/TestU8.java
@@ -291,5 +291,26 @@ public class TestU8 extends Test {
x2s("(?~abc)bc", "abc", 0, 3);
x2s("(?~abc)abc", "abc", 0, 3);
+ // ns("(?~)", " ");
+ ns("(?~)", "");
+ ns(" (?~)", " ");
+ ns(" (?~)", " ");
+ // x2s("(?~(?~))", "abc", 0, 3);
+ x2s("(?~a)", "", 0, 0);
+ x2s("(?~a)a", "a", 0, 1);
+ x2s("(?~a)", "x", 0, 1);
+ x2s("(?~a)a", "xa", 0, 2);
+ x2s("(?~.)", "", 0, 0);
+ x2s("(?~.)a", "a", 0, 1);
+ x2s("(?~.)", "x", 0, 0);
+ x2s("(?~.)a", "xa", 1, 2);
+ x2s("(?~abc)", "abc", 0, 2);
+ x2s("(?~b)", "abc", 0, 1);
+ x2s("(?~abc|b)", "abc", 0, 1);
+ // ns("(?~|abc)", "abc"); // ?
+ x2s("(?~abc|)", "abc", 0, 1); // ?
+ x2s("(?~abc|def)x", "abcx", 1, 4);
+ x2s("(?~abc|def)x", "defx", 1, 4);
+ x2s("^(?~\\S+)TEST", "TEST", 0, 4);
}
}
--
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