Skip to content

Commit f17e15d

Browse files
authored
Merge pull request #842 from szielinski/starter_branch
BST: add angle brackets when calling constructor
2 parents bde6553 + c8e1d8d commit f17e15d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

exercises/binary-search-tree/src/test/java/BSTTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public class BSTTest {
1111

1212
@Test
1313
public void dataIsRetained() {
14-
BST<Integer> bst = new BST();
14+
BST<Integer> bst = new BST<>();
1515
final int actual = 4;
1616
bst.insert(actual);
1717
final BST.Node<Integer> root = bst.getRoot();
@@ -23,7 +23,7 @@ public void dataIsRetained() {
2323
@Ignore("Remove to run test")
2424
@Test
2525
public void insertsLess() {
26-
BST<Integer> bst = new BST();
26+
BST<Integer> bst = new BST<>();
2727
final int expectedRoot = 4;
2828
final int expectedLeft = 2;
2929

@@ -44,7 +44,7 @@ public void insertsLess() {
4444
@Ignore("Remove to run test")
4545
@Test
4646
public void insertsSame() {
47-
BST<Integer> bst = new BST();
47+
BST<Integer> bst = new BST<>();
4848
final int expectedRoot = 4;
4949
final int expectedLeft = 4;
5050

@@ -65,7 +65,7 @@ public void insertsSame() {
6565
@Ignore("Remove to run test")
6666
@Test
6767
public void insertsRight() {
68-
BST<Integer> bst = new BST();
68+
BST<Integer> bst = new BST<>();
6969
final int expectedRoot = 4;
7070
final int expectedRight = 5;
7171

0 commit comments

Comments
 (0)