Advertisement
Guest User

Untitled

a guest
Feb 21st, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. @Test
  2. public void testFindMininMax(){
  3. for(int i = 1; i < 11; i++){
  4. h2.add(i);
  5. }
  6. assertEquals(new Integer(1), h2.findMininMax());
  7. h2.clear();
  8.  
  9. for(int i = 100; i > 0; i--){
  10. h2.add(i);
  11. }
  12. assertEquals(new Integer(1), h2.findMininMax());
  13. h2.clear();
  14.  
  15. h2.add(10);
  16. h2.add(11);
  17. h2.add(3);
  18. h2.add(4);
  19. h2.add(3);
  20. h2.add(5);
  21. h2.add(7);
  22. for(int i = 8; i < 23; i++){
  23. h2.add(i);
  24. }
  25. assertEquals(new Integer(3), h2.findMininMax());
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement