Skip to content

Commit

Permalink
Test for #15
Browse files Browse the repository at this point in the history
  • Loading branch information
lopex committed Mar 16, 2015
1 parent fec066a commit e8327a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/joni/StackMachine.java
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ protected final int nullCheckMemSt(int id, int s) {
int endp;
isNull = 1;
while (k < stk) {
e = stack[k++];
e = stack[k++];
if (e.type == MEM_START) {
if (e.getMemEnd() == INVALID_INDEX) {
isNull = 0;
Expand Down
2 changes: 2 additions & 0 deletions test/org/joni/test/TestA.java
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,8 @@ public void test() throws InterruptedException {

x2s("(?<=\\babc)d", " abcd", 4, 5);
x2s("(?<=\\Babc)d", "aabcd", 4, 5);
x2s("([^\\s]+),(.*)+", " xxxx, xxx xxxxxx xxxxxxxxx xxxxxxx, xxxx xxxxx xxxxx ", 1, 62);
x2s(",(.*)+", " xxxx, xxx xxxxxx xxxxxxxxx xxxxxxx, xxxx xxxxx xxxxx ", 5, 52);
}

public static void main(String[] args) throws Throwable{
Expand Down

0 comments on commit e8327a9

Please sign in to comment.