Matrices

Test for errors

Matrix checks:

  • matrix itself is null
  • matrix is empty
  • matrix rows are null
  • matrix entries in the rows are null

Lists

Test for possible errors

List Checks

  • Test if it’s empty before getting an element

Sort checks:

  • Test if it’s sorted the correct order (ascending, descending).