Skip to content

Commit

Permalink
Test wording
Browse files Browse the repository at this point in the history
  • Loading branch information
slevithan committed Oct 29, 2024
1 parent 69dde43 commit dead174
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion spec/interpolate-number.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ describe('interpolation: numbers', () => {
expect('NaN').toMatch(regex`^${NaN}$`);
});

it('should be quantified as an atomic unit', () => {
it('should be quantified as a complete unit', () => {
expect('123123').toMatch(regex`^${123}+$`);
expect('1233').not.toMatch(regex`^${123}+$`);
});
Expand Down
2 changes: 1 addition & 1 deletion spec/interpolate-pattern.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ describe('interpolation: patterns', () => {
expect('99').toMatch(regex`^${pattern(99)}$`);
});

it('should be quantified as an atomic unit', () => {
it('should be quantified as a complete unit', () => {
expect('_abc_abc').toMatch(regex`^${pattern`.abc`}+$`);
});

Expand Down
2 changes: 1 addition & 1 deletion spec/interpolate-regexp.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
describe('interpolation: regexes', () => {
describe('in default context', () => {
it('should be quantified as an atomic unit', () => {
it('should be quantified as a complete unit', () => {
expect('_abc_abc').toMatch(regex`^${/.abc/}+$`);
});

Expand Down
2 changes: 1 addition & 1 deletion spec/interpolate-string.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe('interpolation: escaped strings', () => {
expect(str).toMatch(regex`${str}`);
});

it('should be quantified as an atomic unit', () => {
it('should be quantified as a complete unit', () => {
const str = 'abc';
expect(str.repeat(2)).toMatch(regex`^${str}+$`);
expect(str.repeat(2)).toMatch(regex`${str}{2}`);
Expand Down
4 changes: 2 additions & 2 deletions spec/subroutines.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ describe('subroutines', () => {
expect('babab').toMatch(regex`^b(?<n>a)b\g<n>b$`);
});

it('should be quantified as an atomic unit', () => {
it('should be quantified as a complete unit', () => {
expect('ababab').toMatch(regex`^(?<n>ab)\g<n>+$`);
expect('ababb').not.toMatch(regex`^(?<n>ab)\g<n>+$`);
});
Expand Down Expand Up @@ -177,7 +177,7 @@ describe('subroutines', () => {
});
});

describe('definition groups', () => {
describe('subroutine definition groups', () => {
it('should not have its groups appear on the groups object of matches', () => {
expect(regex`\g<a>(?(DEFINE)(?<a>.))`.exec('a').groups).toBeUndefined();
expect('b' in regex`(?<a>\g<b>)(?(DEFINE)(?<b>.))`.exec('a').groups).toBeFalse();
Expand Down

0 comments on commit dead174

Please sign in to comment.