Take the padded volume back out: it merged a dump's versions
Test and deploy / test (push) Successful in 55s
Test and deploy / edge (push) Successful in 2m7s
Test and deploy / deploy (push) Successful in 2m34s

208ca1d's volume of 3-5 digits after a digit (YME's "CHT PCK 2 9.26.001")
also took versions for volumes: "K-ML 3.8.233", "3.8.239", "3.8.241" and
Kaizen's "v2.0.1021" ... "v2.0.1057" became one release (505 names on the
corpus). The random name's volumes with their own extensions stay.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Daan MeijerandClaude Opus 5.5 committed 2026-10-14 14:11:03 +02:00
1 parent 208ca1d535
commit eddbe2863f
3 files changed
+11 -14

No files matched your search

+4 -4
View File
@@ -458,15 +458,15 @@ test.group('release / par2 names', () => {
assert.equal(tender('003', 'a2 (2).jpg').key, tender('002', 'a1.jpg').key)
})
test("a random name's volumes with extensions of their own; a padded volume after a date", ({ assert }) => {
test("a random name's volumes with extensions of their own; a dump's versions apart", ({ assert }) => {
const id = (i: string, total: string, n: string) => releaseIdentity({ poster: 'p', subject: `[${i}/${total}] - "${n}" yEnc`, name: n, weak: false })!
assert.equal(id('01', '69', 'df2BkeRxIvHcWrsWwwz.part01.cer').key, id('69', '69', 'df2BkeRxIvHcWrsWwwz.part69.bdmv').key)
assert.equal(id('01', '32', 'jA0eSSUMat8tQtIKUyPMA.part01').key, id('32', '32', 'jA0eSSUMat8tQtIKUyPMA.part32').key)
// A readable name keeps its part.
assert.notEqual(id('01', '2', 'Some.Movie.Part01.mkv').key, id('02', '2', 'Some.Movie.Part02.mkv').key)
const pck = (i: string, n: string) => releaseIdentity({ poster: 'YME', subject: `(????) [${i}/1009] - "${n}" yEnc`, name: n, weak: false })!
assert.equal(pck('0001', 'CHT PCK 2 9.26.001').key, pck('0002', 'CHT PCK 2 9.26.002').key)
assert.notEqual(pck('0001', 'CHT PCK 2 9.26.001').key, pck('0400', 'CHT PCK 4 10.26.400').key)
// A dump's versions stay apart.
const dump = (i: string, n: string) => releaseIdentity({ poster: 'janusch', subject: `(????) [${i}/15816] - "${n}.zip"`, name: `${n}.zip`, weak: false })!
assert.notEqual(dump('00005', 'K-ML 3.8.233').key, dump('00006', 'K-ML 3.8.239').key)
})
test('an image without words around it is keyed by its set', ({ assert }) => {