Advertisement
Guest User

Test cases

a guest
Apr 11th, 2019
483
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.68 KB | None | 0 0
  1. ----------------------------------------------------------------------
  2. Checking function: sameSet -------------------
  3. + For input of ARRAY({11}), ARRAY({11, 11, 11})
  4. + For input of ARRAY({1, 4, 9, 16, 9, 7, 4, 9, 11}), ARRAY({11, 11, 7, 9, 16, 4, 1})
  5. + For input of ARRAY({1, 4, 1}), ARRAY({11, 11, 7, 9, 16, 4, 1})
  6. + For input of ARRAY({1, 1, 11}), ARRAY({11, 11, 7})
  7. + For input of ARRAY({1, 4, 9, 16}), ARRAY({9, 4, 1,})
  8. + For input of ARRAY({11, 11}), ARRAY({11})
  9. + For input of ARRAY({1, 4, 9, 16}), ARRAY({9, 4, 1,})
  10. + For input of ARRAY({11, 11, 550, 650}), ARRAY({11, 550, 550, 650, 550})
  11. + For input of ARRAY({11, 11, 11, 11, 2}), ARRAY({2,2,2,11})
  12. + For input of ARRAY({1, 4, 9}), ARRAY({9, 4, 1,16})
  13. ----------------------------------------------------------------------
  14. Tests passing 10/10 (100%).
  15.  
  16. Checking function: copyEvens -------------------
  17. + copyEvens({3, 2, 4, 5, 8})->{2, 4, 8}
  18. + bSize is set to correct length.->3
  19. + copyEvens({6, 1, 2, 4, 5, 8})->{6, 2, 4, 8}
  20. + bSize is set to correct length.->4
  21. + copyEvens({3, 1, 4, 1, 5})->{4}
  22. + bSize is set to correct length.->1
  23. + copyEvens({2})->{2}
  24. + bSize is set to correct length.->1
  25. + copyEvens({6, 2, 4, 8})->{6, 2, 4, 8}
  26. + bSize is set to correct length.->4
  27. + copyEvens({7, 2, 4, 8})->{2, 4, 8}
  28. + bSize is set to correct length.->3
  29. + copyEvens({7, 2, 3, 8})->{2, 8}
  30. + bSize is set to correct length.->2
  31. + copyEvens({1, 8, 4})->{8, 4}
  32. + bSize is set to correct length.->2
  33. + copyEvens({1, 3, 9})->{}
  34. + bSize is set to correct length.->0
  35. ----------------------------------------------------------------------
  36. Tests passing 18/18 (100%).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement