tracks/java/exercises/triangle/.meta/src/reference/java/Triangle.java in trackler-2.2.1.46 vs tracks/java/exercises/triangle/.meta/src/reference/java/Triangle.java in trackler-2.2.1.47
- old
+ new
@@ -23,10 +23,10 @@
boolean isEquilateral() {
return uniqueSides == 1;
}
boolean isIsosceles() {
- return uniqueSides == 2;
+ return (uniqueSides == 2 || isEquilateral());
}
boolean isScalene() {
return uniqueSides == 3;
}