Skip to content

BST: add angle brackets when calling constructor #842

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 4, 2017
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