diff options
author | Tim Peters <tim.peters@gmail.com> | 2002-08-25 17:40:29 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2002-08-25 17:40:29 (GMT) |
commit | de830ca4eb907ab8e6c4916698e06162d85aafdc (patch) | |
tree | 891e604106db9479df13561dbdc868b607041eda | |
parent | a777799040e749ad5d879c258c5299b5bc2710c1 (diff) | |
download | cpython-de830ca4eb907ab8e6c4916698e06162d85aafdc.zip cpython-de830ca4eb907ab8e6c4916698e06162d85aafdc.tar.gz cpython-de830ca4eb907ab8e6c4916698e06162d85aafdc.tar.bz2 |
Simplified code building sets of characters.
-rw-r--r-- | Lib/test/test_sets.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/test/test_sets.py b/Lib/test/test_sets.py index b0748b5..068b725 100644 --- a/Lib/test/test_sets.py +++ b/Lib/test/test_sets.py @@ -292,11 +292,11 @@ class TestMutate(unittest.TestCase): def test_add_present(self): self.set.add("c") - self.assertEqual(self.set, Set(("a", "b", "c"))) + self.assertEqual(self.set, Set("abc")) def test_add_absent(self): self.set.add("d") - self.assertEqual(self.set, Set(("a", "b", "c", "d"))) + self.assertEqual(self.set, Set("abcd")) def test_add_until_full(self): tmp = Set() @@ -309,7 +309,7 @@ class TestMutate(unittest.TestCase): def test_remove_present(self): self.set.remove("b") - self.assertEqual(self.set, Set(("a", "c"))) + self.assertEqual(self.set, Set("ac")) def test_remove_absent(self): try: @@ -327,11 +327,11 @@ class TestMutate(unittest.TestCase): def test_discard_present(self): self.set.discard("c") - self.assertEqual(self.set, Set(("a", "b"))) + self.assertEqual(self.set, Set("ab")) def test_discard_absent(self): self.set.discard("d") - self.assertEqual(self.set, Set(("a", "b", "c"))) + self.assertEqual(self.set, Set("abc")) def test_clear(self): self.set.clear() |