Commit 1f2b4178 authored by Radek Ošlejšek's avatar Radek Ošlejšek
Browse files

Removed boolean return type from tests

parent b5460d58
...@@ -146,20 +146,9 @@ public class TriangleTest { ...@@ -146,20 +146,9 @@ public class TriangleTest {
}); });
} }
@Test
public void nestedDivisionNegativeInput() {
assertThat(triangle.divide(-5)).isFalse();
assertThat(triangle.divide(-1)).isFalse();
}
@Test
public void nestedDivisionZeroInput() {
assertThat(triangle.divide(0)).isFalse();
}
@Test @Test
public void nestedDivisionDepth1() { public void nestedDivisionDepth1() {
assertThat(triangle.divide(1)).isTrue(); triangle.divide(1);
checkDivisionDepth1(triangle); checkDivisionDepth1(triangle);
} }
...@@ -172,13 +161,13 @@ public class TriangleTest { ...@@ -172,13 +161,13 @@ public class TriangleTest {
@Test @Test
public void nestedDivisionDepth2() { public void nestedDivisionDepth2() {
Triangle second = copyTriangle(triangle); Triangle second = copyTriangle(triangle);
assertThat(second.divide(2)).isTrue(); second.divide(2);
assertNestedDivision2(second); assertNestedDivision2(second);
} }
// TODO cannot check depth 1, problem with equals: checkDivisionDepth1(actual); // TODO cannot check depth 1, problem with equals: checkDivisionDepth1(actual);
private void assertNestedDivision2(Triangle actual) { private void assertNestedDivision2(Triangle actual) {
assertThat(triangle.divide(1)).isTrue(); triangle.divide(1);
// divide second depth manually // divide second depth manually
triangle.getSubTriangle(0).divide(); triangle.getSubTriangle(0).divide();
......
Supports Markdown
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