This commit is contained in:
parent
4d690e2a2a
commit
b9282962f9
@ -69,21 +69,3 @@ function cageCheck(dimensions, numRats, numFullFloors) {
|
||||
|
||||
return failedCriteria;
|
||||
}
|
||||
|
||||
const expectedAreaPerNumRats = { 3: 1.8, 4: 2.0 };
|
||||
for (let numRats in expectedAreaPerNumRats) {
|
||||
console.log(`Area needed for ${numRats}: Calculated=${overallAreaNeeded(parseInt(numRats))}`);
|
||||
}
|
||||
|
||||
const exampleCageChecks = [
|
||||
[[], new Dimensions(1, 0.50, 1), 4, 4],
|
||||
[[FAIL_CRITERIA[FAILED_BASE_AREA]], new Dimensions(0.99, 0.50, 1), 3, 4],
|
||||
[[FAIL_CRITERIA[FAILED_OVERALL_AREA]], new Dimensions(0.99, 0.50, 1), 4, 4],
|
||||
[[FAIL_CRITERIA[FAILED_OVERALL_AREA]], new Dimensions(0.79, 0.79, 1), 4, 4],
|
||||
];
|
||||
|
||||
for (let idx in exampleCageChecks) {
|
||||
let check = exampleCageChecks[idx];
|
||||
console.log(`Example ${idx}: ${check[1]} n(rats): ${check[2]}, n(floors): ${check[3]}`);
|
||||
console.log(`Result: ${JSON.stringify(cageCheck(check[1], check[2], check[3]))}\n`);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user