Skip to content

Commit

Permalink
Merge pull request #65 from kares/jruby-7730
Browse files Browse the repository at this point in the history
[test] reproduce jruby/jruby#7730
  • Loading branch information
enebo committed Sep 6, 2023
2 parents c187bb2 + 3d2a277 commit d4696c4
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 d4696c4

Please sign in to comment.