Skip to content

Commit

Permalink
[test] reproduce jruby/jruby#7730
Browse files Browse the repository at this point in the history
  • Loading branch information
kares committed Sep 6, 2023
1 parent c187bb2 commit 3d2a277
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions test/org/joni/test/TestCaseInsensitive.java
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);
}
}

0 comments on commit 3d2a277

Please sign in to comment.