|
|
@@ -43,7 +43,7 @@ public class BinarySearchTest {
|
|
43
|
43
|
assertEquals(expected, actual);
|
|
44
|
44
|
}
|
|
45
|
45
|
|
|
46
|
|
- @Ignore
|
|
|
46
|
+ @Ignore("Remove to run test")
|
|
47
|
47
|
@Test
|
|
48
|
48
|
public void findsAValueInTheMiddleOfAnArray() {
|
|
49
|
49
|
BinarySearch<Integer> sut = new BinarySearch<>(SORTED_LIST);
|
|
|
@@ -53,7 +53,7 @@ public class BinarySearchTest {
|
|
53
|
53
|
assertEquals(expected, actual);
|
|
54
|
54
|
}
|
|
55
|
55
|
|
|
56
|
|
- @Ignore
|
|
|
56
|
+ @Ignore("Remove to run test")
|
|
57
|
57
|
@Test
|
|
58
|
58
|
public void findsAValueAtTheBeginningOfAnArray() {
|
|
59
|
59
|
BinarySearch<Integer> sut = new BinarySearch<>(SORTED_LIST);
|
|
|
@@ -63,7 +63,7 @@ public class BinarySearchTest {
|
|
63
|
63
|
assertEquals(expected, actual);
|
|
64
|
64
|
}
|
|
65
|
65
|
|
|
66
|
|
- @Ignore
|
|
|
66
|
+ @Ignore("Remove to run test")
|
|
67
|
67
|
@Test
|
|
68
|
68
|
public void findsAValueAtTheEndOfAnArray() {
|
|
69
|
69
|
BinarySearch<Integer> sut = new BinarySearch<>(SORTED_LIST);
|
|
|
@@ -73,7 +73,7 @@ public class BinarySearchTest {
|
|
73
|
73
|
assertEquals(expected, actual);
|
|
74
|
74
|
}
|
|
75
|
75
|
|
|
76
|
|
- @Ignore
|
|
|
76
|
+ @Ignore("Remove to run test")
|
|
77
|
77
|
@Test
|
|
78
|
78
|
public void findsAValueInAnArrayOfOddLength() {
|
|
79
|
79
|
BinarySearch<Integer> sut = new BinarySearch<>(SORTED_LIST_OF_ODD_LENGTH);
|
|
|
@@ -83,7 +83,7 @@ public class BinarySearchTest {
|
|
83
|
83
|
assertEquals(expected, actual);
|
|
84
|
84
|
}
|
|
85
|
85
|
|
|
86
|
|
- @Ignore
|
|
|
86
|
+ @Ignore("Remove to run test")
|
|
87
|
87
|
@Test
|
|
88
|
88
|
public void findsAValueInAnArrayOfEvenLength() {
|
|
89
|
89
|
BinarySearch<Integer> sut
|
|
|
@@ -94,7 +94,7 @@ public class BinarySearchTest {
|
|
94
|
94
|
assertEquals(expected, actual);
|
|
95
|
95
|
}
|
|
96
|
96
|
|
|
97
|
|
- @Ignore
|
|
|
97
|
+ @Ignore("Remove to run test")
|
|
98
|
98
|
@Test
|
|
99
|
99
|
public void identifiesThatAValueIsNotIncludedInTheArray() {
|
|
100
|
100
|
BinarySearch<Integer> sut = new BinarySearch<>(SORTED_LIST);
|
|
|
@@ -104,7 +104,7 @@ public class BinarySearchTest {
|
|
104
|
104
|
assertEquals(expected, actual);
|
|
105
|
105
|
}
|
|
106
|
106
|
|
|
107
|
|
- @Ignore
|
|
|
107
|
+ @Ignore("Remove to run test")
|
|
108
|
108
|
@Test
|
|
109
|
109
|
public void aValueSmallerThanTheArraysSmallestValueIsNotIncluded() {
|
|
110
|
110
|
BinarySearch<Integer> sut = new BinarySearch<>(SORTED_LIST);
|
|
|
@@ -114,7 +114,7 @@ public class BinarySearchTest {
|
|
114
|
114
|
assertEquals(expected, actual);
|
|
115
|
115
|
}
|
|
116
|
116
|
|
|
117
|
|
- @Ignore
|
|
|
117
|
+ @Ignore("Remove to run test")
|
|
118
|
118
|
@Test
|
|
119
|
119
|
public void aValueLargerThanTheArraysSmallestValueIsNotIncluded() {
|
|
120
|
120
|
BinarySearch<Integer> sut = new BinarySearch<>(SORTED_LIST);
|
|
|
@@ -124,7 +124,7 @@ public class BinarySearchTest {
|
|
124
|
124
|
assertEquals(expected, actual);
|
|
125
|
125
|
}
|
|
126
|
126
|
|
|
127
|
|
- @Ignore
|
|
|
127
|
+ @Ignore("Remove to run test")
|
|
128
|
128
|
@Test
|
|
129
|
129
|
public void nothingIsIncludedInAnEmptyArray() {
|
|
130
|
130
|
BinarySearch<Integer> sut = new BinarySearch<>(EMPTY_LIST);
|