there should be a test to compare the array with the generated output