diff --git a/spec/interpolate-number.spec.js b/spec/interpolate-number.spec.js index 2061d1e..ce77471 100644 --- a/spec/interpolate-number.spec.js +++ b/spec/interpolate-number.spec.js @@ -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}+$`); }); diff --git a/spec/interpolate-pattern.spec.js b/spec/interpolate-pattern.spec.js index 43bce16..b7dc2ef 100644 --- a/spec/interpolate-pattern.spec.js +++ b/spec/interpolate-pattern.spec.js @@ -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`}+$`); }); diff --git a/spec/interpolate-regexp.spec.js b/spec/interpolate-regexp.spec.js index a4c63c1..a46b997 100644 --- a/spec/interpolate-regexp.spec.js +++ b/spec/interpolate-regexp.spec.js @@ -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/}+$`); }); diff --git a/spec/interpolate-string.spec.js b/spec/interpolate-string.spec.js index 2e14837..51a3877 100644 --- a/spec/interpolate-string.spec.js +++ b/spec/interpolate-string.spec.js @@ -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}`); diff --git a/spec/subroutines.spec.js b/spec/subroutines.spec.js index 99ec1c7..f630160 100644 --- a/spec/subroutines.spec.js +++ b/spec/subroutines.spec.js @@ -4,7 +4,7 @@ describe('subroutines', () => { expect('babab').toMatch(regex`^b(?a)b\gb$`); }); - it('should be quantified as an atomic unit', () => { + it('should be quantified as a complete unit', () => { expect('ababab').toMatch(regex`^(?ab)\g+$`); expect('ababb').not.toMatch(regex`^(?ab)\g+$`); }); @@ -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(?(DEFINE)(?.))`.exec('a').groups).toBeUndefined(); expect('b' in regex`(?\g)(?(DEFINE)(?.))`.exec('a').groups).toBeFalse();