Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

Using TDD develop a CUT that finds the highest number from an array of integers

Specification

  • If the input were {4, 5, 8, 3, 11, 21, 6} the result should be 21.
  • An empty array should throw an exception.
  • A single array should return the single item.
  • If several numbers are equal and highest, only one should be returned


  • No labels