fix: Use more descriptive depth
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
04dc1e6b90
commit
1d41b0cfc7
@ -49,7 +49,7 @@ function cageCheck(dimensions, numRats, numFullFloors) {
|
|||||||
failedCriteria[FAILED_NUM_RATS] = FAIL_CRITERIA[FAILED_NUM_RATS];
|
failedCriteria[FAILED_NUM_RATS] = FAIL_CRITERIA[FAILED_NUM_RATS];
|
||||||
}
|
}
|
||||||
|
|
||||||
const baseArea = dimensions.length * dimensions.width;
|
const baseArea = dimensions.depth * dimensions.width;
|
||||||
if (baseArea < MINIMUM_BASE_AREA) {
|
if (baseArea < MINIMUM_BASE_AREA) {
|
||||||
failedCriteria[FAILED_BASE_AREA] = FAIL_CRITERIA[FAILED_BASE_AREA];
|
failedCriteria[FAILED_BASE_AREA] = FAIL_CRITERIA[FAILED_BASE_AREA];
|
||||||
}
|
}
|
||||||
@ -63,7 +63,7 @@ function cageCheck(dimensions, numRats, numFullFloors) {
|
|||||||
failedCriteria[FAILED_FALL_HEIGHT] = FAIL_CRITERIA[FAILED_FALL_HEIGHT];
|
failedCriteria[FAILED_FALL_HEIGHT] = FAIL_CRITERIA[FAILED_FALL_HEIGHT];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dimensions.width < MINIMUM_LENGTH && dimensions.length < MINIMUM_LENGTH) {
|
if (dimensions.width < MINIMUM_LENGTH && dimensions.depth < MINIMUM_LENGTH) {
|
||||||
failedCriteria[FAILED_LENGTH] = FAIL_CRITERIA[FAILED_LENGTH];
|
failedCriteria[FAILED_LENGTH] = FAIL_CRITERIA[FAILED_LENGTH];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user