Skip to content

Commit 9606f39

Browse files
More tests
1 parent 5130977 commit 9606f39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/basic.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ describe(RAA.isStrictBackreference.name, function () {
2020
});
2121
}
2222

23-
test(true, [/(a)\1/, /(a)(?:b|\1)/, /(a)\1?/, /(?<=\1(a))b/]);
23+
test(true, [/(a)\1/, /(a)(?:b|\1)/, /(a)\1?/, /(?<=\1(a))b/, /(?!(a)\1)/]);
2424
test(false, [
2525
/(a)|\1/,
2626
/(a\1)/,
@@ -50,7 +50,7 @@ describe(RAA.isEmptyBackreference.name, function () {
5050
}
5151

5252
test(true, [/(\b)a\1/, /(a)b|\1/, /(a\1)/, /\1(a)/, /(?:\1(a))+/, /(?<=(a)\1)b/, /(?!(a))\w\1/, /(?!(?!(a)))\w\1/]);
53-
test(false, [/(?:(a)|b)\1/, /(a)?\1/, /(a)\1/, /(?=(a))\w\1/]);
53+
test(false, [/(?:(a)|b)\1/, /(a)?\1/, /(a)\1/, /(?=(a))\w\1/, /(?!(a)\1)/]);
5454
});
5555

5656
describe(RAA.getCapturingGroupNumber.name, function () {

0 commit comments

Comments
 (0)