Advertisement
IvetValcheva

Test 7

Dec 8th, 2022
386
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.42 KB | None | 0 0
  1. import org.junit.Assert;
  2. import org.junit.Test;
  3.  
  4. import java.util.ArrayList;
  5. import java.util.List;
  6.  
  7. public class TestCeil4_shouldWorkCorrectly {
  8.  
  9.  @Test
  10.     public void testCeil4_shouldWorkCorrectly() {
  11.         BinarySearchTree<Integer> bst = new BinarySearchTree<>();
  12.         Integer ceil = bst.ceil(9);
  13.         Assert.assertNull(ceil);
  14.         bst.insert(9);
  15.         Assert.assertEquals(1, bst.count());
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement