Commit 4fbea87e authored by Justin Dearden's avatar Justin Dearden
Browse files

Version 3.1

Made tweaks to the test cases - assertEquals needed a precision value.
parent e8e74ab4
......@@ -225,7 +225,7 @@ public class TrigFunctionTest {
double expected = Math.cos(Math.toDegrees(i));
double actual = TrigFunctions.cos(i);
assertEquals(expected, actual);
assertEquals(expected, actual, 0);
}
@Test
......@@ -234,7 +234,7 @@ public class TrigFunctionTest {
double expected = Math.cos(Math.toDegrees(i));
double actual = TrigFunctions.cos(i);
assertEquals(expected, actual);
assertEquals(expected, actual, 0);
}
@Test
......@@ -243,7 +243,7 @@ public class TrigFunctionTest {
double expected = Math.cos(Math.toDegrees(i));
double actual = TrigFunctions.cos(i);
assertEquals(expected, actual);
assertEquals(expected, actual, 0);
}
@Test
......@@ -252,7 +252,7 @@ public class TrigFunctionTest {
double expected = Math.cos(Math.toDegrees(i));
double actual = TrigFunctions.cos(i);
assertEquals(expected, actual);
assertEquals(expected, actual, 0);
}
@Test
......@@ -261,7 +261,7 @@ public class TrigFunctionTest {
double expected = Math.cos(Math.toDegrees(i));
double actual = TrigFunctions.cos(i);
assertEquals(expected, actual);
assertEquals(expected, actual, 0);
}
@Test
......@@ -270,7 +270,7 @@ public class TrigFunctionTest {
double expected = Math.cos(Math.toRadians(i));
double actual = TrigFunctions.cos(TrigFunctions.toRadian(i));
assertEquals(expected, actual);
assertEquals(expected, actual, 0);
}
@Test
......@@ -279,7 +279,7 @@ public class TrigFunctionTest {
double expected = Math.cos(Math.toRadians(i));
double actual = TrigFunctions.cos(TrigFunctions.toRadian(i));
assertEquals(expected, actual);
assertEquals(expected, actual, 0);
}
@Test
......@@ -288,7 +288,7 @@ public class TrigFunctionTest {
double expected = Math.cos(Math.toRadians(i));
double actual = TrigFunctions.cos(TrigFunctions.toRadian(i));
assertEquals(expected, actual);
assertEquals(expected, actual, 0);
}
@Test
......@@ -297,7 +297,7 @@ public class TrigFunctionTest {
double expected = Math.cos(Math.toRadians(i));
double actual = TrigFunctions.cos(TrigFunctions.toRadian(i));
assertEquals(expected, actual);
assertEquals(expected, actual, 0);
}
......@@ -307,7 +307,7 @@ public class TrigFunctionTest {
double expected = Math.cos(Math.toRadians(i));
double actual = TrigFunctions.cos(TrigFunctions.toRadian(i));
assertEquals(expected, actual);
assertEquals(expected, actual, 0);
}
//TAN TESTS
......@@ -318,7 +318,7 @@ public class TrigFunctionTest {
double expected = Math.tan(Math.toDegrees(i));
double actual = TrigFunctions.tan(i);
assertEquals(expected, actual);
assertEquals(expected, actual, 0);
}
@Test
......@@ -327,7 +327,7 @@ public class TrigFunctionTest {
double expected = Math.tan(Math.toDegrees(i));
double actual = TrigFunctions.tan(i);
assertEquals(expected, actual);
assertEquals(expected, actual, 0);
}
@Test
......@@ -336,7 +336,7 @@ public class TrigFunctionTest {
double expected = Math.tan(Math.toDegrees(i));
double actual = TrigFunctions.tan(i);
assertEquals(expected, actual);
assertEquals(expected, actual, 0);
}
@Test
......@@ -345,7 +345,7 @@ public class TrigFunctionTest {
double expected = Math.tan(Math.toDegrees(i));
double actual = TrigFunctions.tan(i);
assertEquals(expected, actual);
assertEquals(expected, actual, 0);
}
@Test
......@@ -354,7 +354,7 @@ public class TrigFunctionTest {
double expected = Math.tan(Math.toDegrees(i));
double actual = TrigFunctions.tan(i);
assertEquals(expected, actual);
assertEquals(expected, actual, 0);
}
@Test
......@@ -363,7 +363,7 @@ public class TrigFunctionTest {
double expected = Math.tan(Math.toRadians(i));
double actual = TrigFunctions.tan(TrigFunctions.toRadian(i));
assertEquals(expected, actual);
assertEquals(expected, actual, 0);
}
@Test
......@@ -372,7 +372,7 @@ public class TrigFunctionTest {
double expected = Math.tan(Math.toRadians(i));
double actual = TrigFunctions.tan(TrigFunctions.toRadian(i));
assertEquals(expected, actual);
assertEquals(expected, actual, 0);
}
@Test
......@@ -381,7 +381,7 @@ public class TrigFunctionTest {
double expected = Math.tan(Math.toRadians(i));
double actual = TrigFunctions.tan(TrigFunctions.toRadian(i));
assertEquals(expected, actual);
assertEquals(expected, actual, 0);
}
@Test
......@@ -390,7 +390,7 @@ public class TrigFunctionTest {
double expected = Math.tan(Math.toRadians(i));
double actual = TrigFunctions.tan(TrigFunctions.toRadian(i));
assertEquals(expected, actual);
assertEquals(expected, actual, 0);
}
@Test
......@@ -399,7 +399,7 @@ public class TrigFunctionTest {
double expected = Math.tan(Math.toRadians(i));
double actual = TrigFunctions.tan(TrigFunctions.toRadian(i));
assertEquals(expected, actual);
assertEquals(expected, actual, 0);
}
}
......@@ -50,19 +50,7 @@ public class TrigFunctions {
}
public static double cos(double degrees) {
return 0;
}
public static double tan(double degrees) {
return 0;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment