diff options
Diffstat (limited to 'Week7/test/polynomial')
-rw-r--r-- | Week7/test/polynomial/PolynomialTest.java | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/Week7/test/polynomial/PolynomialTest.java b/Week7/test/polynomial/PolynomialTest.java index dc31900..7d7275a 100644 --- a/Week7/test/polynomial/PolynomialTest.java +++ b/Week7/test/polynomial/PolynomialTest.java @@ -5,7 +5,6 @@ */ package polynomial; -import java.util.Scanner; import org.junit.After; import org.junit.AfterClass; import org.junit.Before; @@ -14,8 +13,8 @@ import org.junit.Test; import static org.junit.Assert.*; /** - * - * @author camilstaps + * A test class for the polynomial.Polynomial class + * @author Camil Staps, s4498062 */ public class PolynomialTest { @@ -113,23 +112,6 @@ public class PolynomialTest { } /** - * Test of plus method, of class Polynomial. - */ - @Test - public void testPlus_Term() { - System.out.println("plus"); - Term t = Term.scanTerm(new Scanner("5 3")); - - Polynomial instance = new Polynomial("4 7 2 3 1 0"); // normal addition - instance.plus(t); - assertEquals(new Polynomial("4 7 7 3 1 0"), instance); - - instance = new Polynomial("4 7 -5 3 1 0"); // addition when the term cancels out - instance.plus(t); - assertEquals(new Polynomial("4 7 1 0"), instance); - } - - /** * Test of apply method, of class Polynomial. */ @Test |