Add tests for evaluateCheck

This commit is contained in:
Johannes Loher 2021-03-13 18:43:23 +01:00
parent bafb770178
commit 98deee1856
2 changed files with 142 additions and 122 deletions

View file

@ -17,7 +17,12 @@ export default function evaluateCheck(
});
}
export function assignSubChecksToDice(
interface DieWithSubCheck {
result: number;
checkTargetNumber: number;
}
function assignSubChecksToDice(
dice: number[],
checkTargetNumber: number,
{
@ -76,11 +81,6 @@ function shouldUseCoupForLastSubCheck(
);
}
interface DieWithSubCheck {
result: number;
checkTargetNumber: number;
}
interface DS4SubCheckResult extends DieWithSubCheck, DiceTerm.Result {
success?: boolean;
failure?: boolean;