You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2020/07/01 12:41:22 UTC
[commons-text] 05/05: Sort members.
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-text.git
commit c23a930f434471f74cd55455097c19f49e2006fb
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Wed Jul 1 08:40:11 2020 -0400
Sort members.
---
.../text/matcher/StringMatcherOnCharArrayTest.java | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/src/test/java/org/apache/commons/text/matcher/StringMatcherOnCharArrayTest.java b/src/test/java/org/apache/commons/text/matcher/StringMatcherOnCharArrayTest.java
index ad22693..71a6f37 100644
--- a/src/test/java/org/apache/commons/text/matcher/StringMatcherOnCharArrayTest.java
+++ b/src/test/java/org/apache/commons/text/matcher/StringMatcherOnCharArrayTest.java
@@ -253,17 +253,6 @@ public class StringMatcherOnCharArrayTest {
assertThat(matcher.isMatch(BUFFER1, 10)).isEqualTo(0);
}
- @Test
- public void testStringMatcher_String_fromChars() {
- testStringMatcher_String(StringMatcherFactory.INSTANCE.stringMatcher('b', 'c'));
- testStringMatcher_String(StringMatcherFactory.INSTANCE.stringMatcher(new char[] {'b', 'c'}));
- }
-
- @Test
- public void testStringMatcher_String_fromString() {
- testStringMatcher_String(StringMatcherFactory.INSTANCE.stringMatcher("bc"));
- }
-
private void testStringMatcher_String(final StringMatcher matcher) {
assertEquals(2, matcher.size());
//
@@ -287,6 +276,17 @@ public class StringMatcherOnCharArrayTest {
.isSameAs(StringMatcherFactory.INSTANCE.noneMatcher());
}
+ @Test
+ public void testStringMatcher_String_fromChars() {
+ testStringMatcher_String(StringMatcherFactory.INSTANCE.stringMatcher('b', 'c'));
+ testStringMatcher_String(StringMatcherFactory.INSTANCE.stringMatcher(new char[] {'b', 'c'}));
+ }
+
+ @Test
+ public void testStringMatcher_String_fromString() {
+ testStringMatcher_String(StringMatcherFactory.INSTANCE.stringMatcher("bc"));
+ }
+
// -----------------------------------------------------------------------
@Test
public void testTabMatcher() {