@@ -14,23 +14,23 @@ describe('Validate legacyLineToWords', () => {
1414 } ) ;
1515
1616 test . each `
17- line | expectedResult
18- ${ 'hello' } | ${ [ 'hello' ] }
19- ${ 'AppendIterator::getArrayIterator' } | ${ [ 'append' , 'iterator' , 'get' , 'array' ] }
20- ${ 'Austin Martin' } | ${ [ 'austin' , 'martin' ] }
21- ${ 'JPEGsBLOBs' } | ${ [ 'jpegs' , 'blobs' ] }
22- ${ 'CURLs CURLing' /* Sadly we cannot do this one correctly */ } | ${ [ 'curls' , 'curling' ] }
23- ${ 'DNSTable Lookup' } | ${ [ 'dns' , 'table' , 'lookup' ] }
24- ${ 'OUTRing' } | ${ [ 'outring ' ] }
25- ${ 'OUTRings' } | ${ [ 'outrings ' ] }
26- ${ 'DIRs' } | ${ [ 'dirs ' ] }
27- ${ 'AVGAspect' } | ${ [ 'avg' , 'aspect' ] }
28- ${ 'New York' } | ${ [ 'new' , 'york' ] }
29- ${ 'Namespace DNSLookup' } | ${ [ 'namespace' , 'dns' , 'lookup' ] }
30- ${ 'well-educated' } | ${ [ 'well' , 'educated' ] }
31- ${ 'CURLcode' } | ${ [ 'cur' , 'lcode' ] }
32- ${ 'kDNSServiceErr_BadSig' } | ${ [ 'k' , 'dns' , 'service' , 'err' , 'bad' , 'sig' ] }
33- ${ 'apd_get_active_symbols' } | ${ [ 'apd' , 'get' , 'active' , 'symbols' ] }
17+ line | expectedResult
18+ ${ 'hello' } | ${ [ 'hello' ] }
19+ ${ 'AppendIterator::getArrayIterator' } | ${ [ 'append' , 'iterator' , 'get' , 'array' ] }
20+ ${ 'Austin Martin' } | ${ [ 'austin' , 'martin' ] }
21+ ${ 'JPEGSBlobs' } | ${ [ 'jpegs' , 'blobs' ] }
22+ ${ 'CURLS Curling' } | ${ [ 'curls' , 'curling' ] }
23+ ${ 'DNSTable Lookup' } | ${ [ 'dns' , 'table' , 'lookup' ] }
24+ ${ 'OUTRing' } | ${ [ 'out' , 'ring '] }
25+ ${ 'OUTRings' } | ${ [ 'out' , 'rings '] }
26+ ${ 'DIRs' } | ${ [ 'di' , 'rs '] }
27+ ${ 'AVGAspect' } | ${ [ 'avg' , 'aspect' ] }
28+ ${ 'New York' } | ${ [ 'new' , 'york' ] }
29+ ${ 'Namespace DNSLookup' } | ${ [ 'namespace' , 'dns' , 'lookup' ] }
30+ ${ 'well-educated' } | ${ [ 'well' , 'educated' ] }
31+ ${ 'CURLcode' } | ${ [ 'cur' , 'lcode' ] }
32+ ${ 'kDNSServiceErr_BadSig' } | ${ [ 'k' , 'dns' , 'service' , 'err' , 'bad' , 'sig' ] }
33+ ${ 'apd_get_active_symbols' } | ${ [ 'apd' , 'get' , 'active' , 'symbols' ] }
3434 ` ( 'legacy splitting lines $line' , ( { line, expectedResult } : { line : string ; expectedResult : string [ ] } ) => {
3535 expect ( [ ...pipe ( legacyLineToWords ( line , false , allowed ) , opFilter ( distinct ( ) ) ) ] ) . toEqual ( expectedResult ) ;
3636 } ) ;
0 commit comments