fix: close phase4 overseas acceptance gaps
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import assert from 'node:assert/strict'
|
||||
import test from 'node:test'
|
||||
|
||||
import { markerSuffix } from './phase3-loading.mjs'
|
||||
|
||||
test('phase3 loading fixture identifiers are deterministic and distinct across marker variants', () => {
|
||||
const base = 'ADMIN-API-20260824123024536'
|
||||
const primary = markerSuffix(`${base}-P4-OVERSEAS-PRIMARY`)
|
||||
const secondary = markerSuffix(`${base}-P4-SECONDARY`)
|
||||
|
||||
assert.equal(primary, markerSuffix(`${base}-P4-OVERSEAS-PRIMARY`))
|
||||
assert.notEqual(primary, secondary)
|
||||
assert.match(primary, /^\d{8}-[0-9A-F]{8}$/)
|
||||
assert.ok(`P3B-${primary}`.length <= 64)
|
||||
})
|
||||
Reference in New Issue
Block a user