Skip to content

Commit

Permalink
Add missing res_printer in search_for_min_max_in_array.py
Browse files Browse the repository at this point in the history
  • Loading branch information
metopa committed Mar 11, 2018
1 parent eeb6448 commit 22fc662
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions epi_judge_python/search_for_min_max_in_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ def find_min_max(A):
return MinMax(0, 0)


def res_printer(expected, result):
def fmt(x):
return 'min: {}, max: {}'.format(x[0], x[1]) if x else None

return fmt(expected), fmt(result)


from test_framework import test_utils_generic_main, test_utils

if __name__ == '__main__':
Expand Down

0 comments on commit 22fc662

Please sign in to comment.