-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package org.joni.test; | ||
|
||
import org.jcodings.Encoding; | ||
import org.jcodings.specific.UTF8Encoding; | ||
import org.joni.Option; | ||
import org.joni.Syntax; | ||
|
||
public class TestCaseInsensitive extends Test { | ||
|
||
@Override | ||
public int option() { | ||
return Option.IGNORECASE; | ||
} | ||
@Override | ||
public Encoding encoding() { | ||
return UTF8Encoding.INSTANCE; | ||
} | ||
@Override | ||
public String testEncoding() { | ||
return "utf-8"; | ||
} | ||
@Override | ||
public Syntax syntax() { | ||
return Syntax.TEST; | ||
} | ||
|
||
@Override | ||
public void test() throws Exception { | ||
xx("^\\d\\d\\d-".getBytes(), new byte[]{-30, -126, -84, 48, 45}, 0, 0, 0, true); | ||
x2s("ab", "\uD835\uDC4D ab", 5, 7); | ||
} | ||
} |