From 5dca7b0f4aed3ae3ba90cdf205ca38e9269cfb37 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Tue, 17 Mar 2015 19:10:07 +0100 Subject: Added javadoc --- Week7/test/polynomial/PolynomialTest.java | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) (limited to 'Week7/test/polynomial') 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 { @@ -112,23 +111,6 @@ public class PolynomialTest { assertEquals(new Polynomial("7 4 5 3 10 1 15 0"), instance); // 7x^4 + 5x^3 + 10x + 15 } - /** - * 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. */ -- cgit v1.2.3