trityp { public static int type(int Side1, int Side2, int Side3) { int tri_out; if (Side1 <= 0 || Side2 <= 0 || Side3 <= 0) { tri_out = 4; return (tri_out); } tri_out = 0; if (Side1 == Side2) tri_out = tri_out + 1; if (Side1 == Side3) tri_out = tri_out + 2; if (Side2 == Side3) tri_out = tri_out + 3; if (tri_out == 0) { if (Side1+Side2 <= Side3 || Side2+Side3 <= Side1 || Side1+Side3 <= Side2) tri_out = 4; else tri_out = 1; return (tri_out); } if (tri_out > 3) tri_out = 3; else if (tri_out == 1 && Side1+Side2 > Side3) tri_out = 2; else if (tri_out == 2 && Side1+Side3 > Side2) tri_out = 2; else if (tri_out == 3 && Side2+Side3 > Side1) tri_out = 2; else tri_out = 4; return (tri_out); }  static int type(int Side1, int Side2, int Side3);  }
@Test public void testNotTriangle8() { Assert.assertEquals(trityp.type(5,11,5), 4); }
@Test public void testNotTriangle9() { Assert.assertEquals(trityp.type(1,1,3), 4); }
@Test public void testNotTriangle10() { Assert.assertEquals(trityp.type(1,3,1), 4); }
@Test public void testNotTriangle11() { int v = trityp.type(3,1,1); Assert.assertEquals(v, 4); }
@Test public void testNotTriangle12() { int v = trityp.type(1,2,2); Assert.assertEquals(v, 2); }
@Test public void testIsosceles2() { Assert.assertEquals(trityp.type(10,10,2), 2); }
@Test public void testIsosceles3() { Assert.assertEquals(4 , trityp.type(3,5,8)); }
@Test public void testIsosceles() { Assert.assertEquals(trityp.type(4,5,4), 2); }
@Test public void testNotTriangle1() { Assert.assertEquals(trityp.type(2,1,3), 4); }
@Test public void testNotTriangle2() { Assert.assertEquals(trityp.type(0,0,0), 4); }
@Test public void testNotTriangle3() { Assert.assertEquals(trityp.type(1,1,3), 4); }
@Test public void testNotTriangle4() { Assert.assertEquals(trityp.type(0,1,1), 4); }
@Test public void testNotTriangle5() { Assert.assertEquals(trityp.type(1,0,1), 4); }
@Test public void testNotTriangle6() { Assert.assertEquals(trityp.type(1,1,0), 4); }
@Test public void testNotTriangle7() { Assert.assertEquals(trityp.type(11,5,5), 4); }