package Examples; /** * This floating point Triangle class is very hard to cover for a random-based tool. * */ public class Triangle { double a ; double b ; double c ; public Triangle(double a, double b, double c) { if (a<=0) throw new IllegalArgumentException() ; if (b<=0) throw new IllegalArgumentException() ; if (c<=0) throw new IllegalArgumentException() ; this.a = a ; this.b = b ; this.c = c ; } public boolean isEquilateral() { //return true ; return a==b && b==c ; } public boolean isIsoleces() { //return true ; return a==b || b==c || a==c ; } public boolean isScalene() { //return true ; return a!=b && b!=c && a!=c ; } }