get_values_from_row had a flaw that would result in a wrong value for n_cols under certain conditions. n_cols is expected to be the result of get_index_from_letters for the "highest letter" column. However, using max to get the "highest letter" column is not feasible as max("Z", "AA") == "Z".
To fix this, get_index_from_letters is called on all values of column_map to make sure that we find the correct n_cols.
Testing instructions
The unit test for get_values_from_row have been updated to cover this change as well.
Summary
get_values_from_row
had a flaw that would result in a wrong value forn_cols
under certain conditions.n_cols
is expected to be the result ofget_index_from_letters
for the "highest letter" column. However, usingmax
to get the "highest letter" column is not feasible asmax("Z", "AA") == "Z"
. To fix this,get_index_from_letters
is called on all values ofcolumn_map
to make sure that we find the correctn_cols
.Testing instructions
The unit test for
get_values_from_row
have been updated to cover this change as well.