Test Output Cleanup

This commit is contained in:
Steve Faulkner
2020-10-05 23:21:58 -05:00
committed by GitHub
parent b83f59ac31
commit f5bbd52311
7 changed files with 21 additions and 29 deletions

View File

@@ -32,13 +32,11 @@ export class ArraysByKeyCache<T> {
this.cache[key] = elements;
if (index < 0) {
console.error("Inserting with negative index is not allowed by ArraysByCache");
return;
}
// Check that previous index is populated, if not, ignore
if (index > elements.length) {
console.error("Inserting non-contiguous element is not allowed by ArraysByCache");
return;
}