From 661a7ecbcc96c3730dff89dfe852c9d5a18a8b83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@henrietta.com.pl> Date: Sat, 25 Apr 2020 16:07:57 +0200 Subject: [PATCH] fix test, use set literal in tests --- tests/test_coding/test_sequences.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_coding/test_sequences.py b/tests/test_coding/test_sequences.py index 52a78532..fa2b2e55 100644 --- a/tests/test_coding/test_sequences.py +++ b/tests/test_coding/test_sequences.py @@ -54,8 +54,8 @@ class TestSequences(unittest.TestCase): self.assertEqual(b, [2, 3, 4, 5]) def test_half_cartesian(self): - a = set(half_cartesian([1, 2, 3], [1, 2, 3])) - b = set([(1, 1), (1, 2), (1, 3), (2, 2), (2, 3), (3, 3)]) + a = set(half_cartesian([1, 2, 3])) + b = {(1, 1), (1, 2), (1, 3), (2, 2), (2, 3), (3, 3)} self.assertEqual(a, b) def test_add_next(self): -- GitLab