test: detect shared overflow evidence
This commit is contained in:
@@ -66,6 +66,17 @@ test('scenario inspection requires deletion release, refill reuse, WAIT_SPLIT, a
|
||||
assert.equal(inspectScenarioReport(scenario, report, 0).passed, false)
|
||||
})
|
||||
|
||||
test('scenario inspection detects naturally observed shared A0 from evidence without coupling to step wording', () => {
|
||||
const scenario = PALLET_LOCATION_SCENARIOS[0]
|
||||
const report = {
|
||||
success: false,
|
||||
createdResources: {},
|
||||
steps: [{ name: '正式数据 A0 共享溢出观测', passed: true,
|
||||
evidence: 'sharedOverflow=true, slots=1:reservation:A0' }],
|
||||
}
|
||||
assert.equal(inspectScenarioReport(scenario, report, 1).resources.sharedOverflowObserved, true)
|
||||
})
|
||||
|
||||
test('cross-scenario inspection permits shared A0 location but rejects shared reservation or block', () => {
|
||||
const results = [
|
||||
{ resources: { inboundId: '1', blockId: '11', reservationId: '21', locationId: 'A0' } },
|
||||
|
||||
Reference in New Issue
Block a user