From bd1e9dd7cd34871cfcad8bdd2eda24ee3800ada9 Mon Sep 17 00:00:00 2001 From: AnAccountForReportingBugs <45908752+AnAccountForReportingBugs@users.noreply.github.com> Date: Thu, 7 Mar 2019 15:19:21 -0600 Subject: [PATCH] Update palindrome_products_test.py Changes two tests to assertFactorsEqual in order to allow implementations that don't use lists to pass. --- exercises/palindrome-products/palindrome_products_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exercises/palindrome-products/palindrome_products_test.py b/exercises/palindrome-products/palindrome_products_test.py index 200ab5686dc..11ece4dc154 100644 --- a/exercises/palindrome-products/palindrome_products_test.py +++ b/exercises/palindrome-products/palindrome_products_test.py @@ -62,12 +62,12 @@ def test_largest_palindrome_from_four_digit_factors(self): def test_empty_for_smallest_palindrome_if_none_in_range(self): value, factors = smallest_palindrome(min_factor=1002, max_factor=1003) self.assertIsNone(value) - self.assertEqual(factors, []) + self.assertFactorsEqual(factors, []) def test_empty_for_largest_palindrome_if_none_in_range(self): value, factors = largest_palindrome(min_factor=15, max_factor=15) self.assertIsNone(value) - self.assertEqual(factors, []) + self.assertFactorsEqual(factors, []) def test_error_for_smallest_if_min_is_more_than_max(self): with self.assertRaisesWithMessage(ValueError):