aboutsummaryrefslogtreecommitdiff
path: root/Week7/test
diff options
context:
space:
mode:
authorCamil Staps2015-03-17 19:10:07 +0100
committerCamil Staps2015-03-17 19:10:07 +0100
commit5dca7b0f4aed3ae3ba90cdf205ca38e9269cfb37 (patch)
tree8b38d7785371d384646330dbd2d84f46d8e9696c /Week7/test
parentAdded MIT license w7 (diff)
Added javadoc
Diffstat (limited to 'Week7/test')
-rw-r--r--Week7/test/polynomial/PolynomialTest.java22
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