#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ ENGG1811 Week 4 test code to test my_max """ # The test inputs and expected output test_inputs = [[2, 5, 8], [3, 17, 19, 24], [23, 1, 51, 19, 107, 123]] test_expected_outputs = [8,24,123] # To carry out the test import my_max as my # Loop through all the tests for k in range(0,len(test_inputs)): test_input = test_inputs[k] test_output = my.my_max(test_input) if test_output == test_expected_outputs[k]: print('Test',k,': Passed') else: print('Test',k,': Failed')