This fixes the bug revealed in the previous commit so that the test
suite now passes once again.
The server now doesn't apy attention to the capitalization that a
client happens to use when providing a judging submission, but will
treat things as equivalent regardless of case differences.
eq = [group[j], group[i]];
}
- const exist = this.equivalencies[`${eq[0]}:${eq[1]}`];
+ const key=`${this.canonize(eq[0])}:${this.canonize(eq[1])}`;
+
+ const exist = this.equivalencies[key];
if (exist) {
exist.count++;
} else {
- this.equivalencies[`${eq[0]}:${eq[1]}`] = {
+ this.equivalencies[key] = {
count: 1,
words: eq
};