(output, ground_truth)
| 749 | |
| 750 | |
| 751 | def custom_compare_(output, ground_truth): |
| 752 | |
| 753 | if isinstance(output, list): |
| 754 | output_1 = '\n'.join(output) |
| 755 | if stripped_string_compare(output_1, ground_truth): |
| 756 | return True |
| 757 | |
| 758 | if isinstance(output, list): |
| 759 | output_2 = [o.lstrip().rstrip() for o in output] |
| 760 | output_2 = '\n'.join(output_2) |
| 761 | if stripped_string_compare(output_2, ground_truth): |
| 762 | return True |
| 763 | |
| 764 | return False |
| 765 | |
| 766 | |
| 767 | def stripped_string_compare(s1, s2): |
no test coverage detected