Day 27— Testing

Task

Finish the implementation of classes to provide data and expected results for the tests.

Complete the following methods.

In the class TestDataEmptyArray:

  • get_array() returns an empty array

In the class TestDataEmptyArray:

  • get_array() returns an array of size at least 2 with all unique elements
  • get_expected_result() returns the expected minimum value index for this array

In the class TestDataExactlyTwoDifferentMinimums:

  • get_array() returns an array where the minimum value occurs at exactly 2 indices
  • get_expected_result() returns the expected index

--

--

Day 21 — Generics

Task

Write a single generic function named printArray; this function must take an array of generic elements as a parameter (the exception to this is C++, which takes a vector).

Input Format

The locked Solution class in your editor will pass different types of arrays to…

--

--