Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions exercises/binary-search-tree/src/test/java/BSTTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class BSTTest {

@Test
public void dataIsRetained() {
BST<Integer> bst = new BST();
BST<Integer> bst = new BST<>();
final int actual = 4;
bst.insert(actual);
final BST.Node<Integer> root = bst.getRoot();
Expand All @@ -23,7 +23,7 @@ public void dataIsRetained() {
@Ignore("Remove to run test")
@Test
public void insertsLess() {
BST<Integer> bst = new BST();
BST<Integer> bst = new BST<>();
final int expectedRoot = 4;
final int expectedLeft = 2;

Expand All @@ -44,7 +44,7 @@ public void insertsLess() {
@Ignore("Remove to run test")
@Test
public void insertsSame() {
BST<Integer> bst = new BST();
BST<Integer> bst = new BST<>();
final int expectedRoot = 4;
final int expectedLeft = 4;

Expand All @@ -65,7 +65,7 @@ public void insertsSame() {
@Ignore("Remove to run test")
@Test
public void insertsRight() {
BST<Integer> bst = new BST();
BST<Integer> bst = new BST<>();
final int expectedRoot = 4;
final int expectedRight = 5;

Expand Down