Guard Duke grants using public capture uncertainty
Verify and publish checkpoint container / container (push) Successful in 11m21s
Verify and publish checkpoint container / container (push) Successful in 11m21s
This commit is contained in:
1 parent
5f4eeee4f1
commit
57e7611468
15 files changed
+500
-19
No files matched your search
@@ -192,7 +192,7 @@ void test('pure source/canonical identity/custody checks reject safely, with one
|
||||
EcazDukeAcquisitionError,
|
||||
);
|
||||
});
|
||||
void test('redundant same-owner and Advanced Harkonnen cases keep public reasons independent of private custody', () => {
|
||||
void test('redundant same-owner and uncertain Advanced Harkonnen cases keep public reasons independent of private custody', () => {
|
||||
const own = fixture();
|
||||
own.dukeVidal = acquireDuke(own.dukeVidal!, 'ec', 1, 'ecaz');
|
||||
const reason = ecazDukeAcquisitionBlock(own, 'ec');
|
||||
@@ -200,10 +200,15 @@ void test('redundant same-owner and Advanced Harkonnen cases keep public reasons
|
||||
own.dukeVidal.leader.capturedBy = 'in';
|
||||
assert.equal(ecazDukeAcquisitionBlock(own, 'ec'), reason);
|
||||
const hark = fixture('harkonnen', true);
|
||||
assert.equal(hark.dukeCaptureUncertain, false);
|
||||
assert.equal(ecazDukeAcquisitionBlock(hark, 'ec'), null);
|
||||
hark.dukeCaptureUncertain = true;
|
||||
const blocked = ecazDukeAcquisitionBlock(hark, 'ec');
|
||||
assert.match(blocked!, /Advanced Harkonnen/);
|
||||
assert.match(blocked!, /Harkonnen capture history may be unresolved/);
|
||||
hark.dukeVidal!.leader.capturedBy = 'in';
|
||||
assert.equal(ecazDukeAcquisitionBlock(hark, 'ec'), blocked);
|
||||
delete hark.dukeCaptureUncertain;
|
||||
assert.equal(ecazDukeAcquisitionBlock(hark, 'ec'), blocked);
|
||||
const basic = fixture('harkonnen', false);
|
||||
assert.equal(ecazDukeAcquisitionBlock(basic, 'ec'), null);
|
||||
});
|
||||
@@ -316,6 +321,7 @@ void test('explicit Duke choice/owner/event and eligibility are checked before t
|
||||
(b: Game) => {
|
||||
b.advanced = true;
|
||||
p(b, 'in').faction = 'harkonnen';
|
||||
b.dukeCaptureUncertain = true;
|
||||
},
|
||||
]) {
|
||||
const bad = reload(g);
|
||||
|
||||
Reference in new issue
Block a user