%% TEST 0: Unit test for a case with the largest load in quadrant 1 
% The expected result is 21.
W = [5, 4, 4, 3 ;
     3, 9, 8, 3 ;
     4, 2, 1, 8 ;
     3, 4, 1, 2 ];
 
result = largestLoad_buggy1(W);
expected_result = 21;

% Display a nice summary of this test case in the Command Window
disp("Test 0:");
disp("Result from calling largestLoad_buggy1 is:");
disp(result);
disp("Expected result is:");
disp(expected_result);
disp("-------------------"); % prints a line to help separate the test cases.
                             % this isn't necessary, just helpful for
                             % humans when we're reading the output!

%% TEST 1: Unit test for a non-square matrix
% A non-square (2x6) matrix where all the numbers are positive 
% and the largest load is in the fourth quadrant.
% The expected result is 14. 

W = [2, 7, 4, 3, 1, 4;
     3, 5, 2, 5, 6, 3];
 
result = largestLoad_buggy1(W);
expected_result = 14;

% Display a nice summary of this test case in the Command Window
disp("Test 1:");
disp("Result from calling largestLoad_buggy1 is:");
disp(result);
disp("Expected result is:");
disp(expected_result);
disp("-------------------"); % prints a line to help separate the test cases

%% TEST 2: Unit test for equal loads
% A matrix with an equal loads in all quadrants.
% The expected result is   . % TODO

W = [2, 3, 2, 3;
     3, 2, 3, 2;
     2, 3, 2, 3;
     3, 2, 3, 2];

result = largestLoad_buggy1(W);
expected_result =   ; % TODO

% Display a nice summary of this test case in the Command Window
disp("Test 2:");
disp("Result from calling largestLoad_buggy1 is:");
disp(result);
disp("Expected result is:");
disp(expected_result);
disp("-------------------"); % prints a line to help separate the test cases

%% TEST 3: Unit test for max load in quadrant 3
% A matrix with the maximum load in the upper right quadrant.
% The expected result is   . % TODO

W = % TODO

result = largestLoad_buggy1(W);
expected_result =  ; % TODO

% Display a nice summary of this test case in the Command Window
disp("Test 3:");
disp("Result from calling largestLoad_buggy1 is:");
disp(result);
disp("Expected result is:");
disp(expected_result);
disp("-------------------"); % prints a line to help separate the test cases

