示例#1
0
 public void testQuadratic3() {
   a = 2;
   b = 2;
   c = 3;
   int natureExpected = -1;
   int natureReturned = QuadraticRoots.natureOfRoots(a, b, c);
   assertEquals(natureExpected, natureReturned);
 }
示例#2
0
 public void testQuadratic2() {
   a = 4;
   b = 12;
   c = 9;
   int natureExpected = 0;
   int natureReturned = QuadraticRoots.natureOfRoots(a, b, c);
   assertEquals(natureExpected, natureReturned);
 }