package ru.stqa.pft.sandbox;

import org.testng.Assert;
import org.testng.annotations.Test;

public class EquationTests {

  @Test
  public void test0() {
    Equation e = new Equation(1,1,1);
//    Assert.assertEquals(e.rootNumber(), 0);
    Assert.assertEquals(e.rootNumber(), 1);
  }

  @Test
  public void test1() {
    Equation e = new Equation(1,2,1);
    Assert.assertEquals(e.rootNumber(), 1);
  }

  @Test
  public void test3() {
    Equation e = new Equation(1,5,6);
    Assert.assertEquals(e.rootNumber(), 2);
  }

  @Test
  public void testLinear() {
    Equation e = new Equation(0,1,1);
    Assert.assertEquals(e.rootNumber(), 1);
  }

  @Test
  public void testConstant() {
    Equation e = new Equation(0,0,1);
    Assert.assertEquals(e.rootNumber(), 0);
  }

  @Test
  public void testZero() {
    Equation e = new Equation(0,0,0);
    Assert.assertEquals(e.rootNumber(), -1);
  }

}

@@ -190,10 +190,8 @@
 1);%0A
-//
     
@@ -234,52 +234,8 @@
 0);%0A
-    Assert.assertEquals(e.rootNumber(), 1);%0A
   %7D%0A

Revert "Испорчен тест для проверки Jenkins"