Fix lint errors: replace non-null assertions in CS2 DNP test
https://claude.ai/code/session_01HxNPLEXzr5Km3suWrJe2F9
This commit is contained in:
parent
ff116961f7
commit
ec507f94e3
1 changed files with 3 additions and 2 deletions
|
|
@ -512,13 +512,14 @@ describe("not-participating exclusion (CS2)", () => {
|
|||
|
||||
let dominantWinsWithFull = 0;
|
||||
let dominantWinsWithReduced = 0;
|
||||
const firstPlaceQP = qpConfig.get(1) ?? 0;
|
||||
|
||||
for (let i = 0; i < TRIALS; i++) {
|
||||
const fullResult = simulateOneMajor(allPool, undefined, qpConfig);
|
||||
if ((fullResult.get(dominantTeam.id) ?? 0) === qpConfig.get(1)!) dominantWinsWithFull++;
|
||||
if ((fullResult.get(dominantTeam.id) ?? 0) === firstPlaceQP) dominantWinsWithFull++;
|
||||
|
||||
const reducedResult = simulateOneMajor(reducedPool, undefined, qpConfig);
|
||||
if ((reducedResult.get(dominantTeam.id) ?? 0) === qpConfig.get(1)!) dominantWinsWithReduced++;
|
||||
if ((reducedResult.get(dominantTeam.id) ?? 0) === firstPlaceQP) dominantWinsWithReduced++;
|
||||
}
|
||||
|
||||
// Dominant team (Elo 5000 vs 1500) wins nearly every sampled major
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue