refactor: Remove debug code
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
moanos [he/him] 2024-07-20 08:19:12 +02:00
parent 4d690e2a2a
commit b9282962f9

View File

@ -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`);
}