From 602498be3e34737a5a6f19499fd1e470a11f088e Mon Sep 17 00:00:00 2001 From: Danny Date: Mon, 12 Feb 2018 19:37:22 -0400 Subject: [PATCH] tweaked the tuple lesson for greater clarity (#167) * tweaked the tuple lesson for greater clarity --- python2/koans/about_tuples.py | 3 ++- python3/koans/about_tuples.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/python2/koans/about_tuples.py b/python2/koans/about_tuples.py index 84ba5d552..7ef9a886d 100644 --- a/python2/koans/about_tuples.py +++ b/python2/koans/about_tuples.py @@ -41,7 +41,8 @@ def test_tuples_can_only_be_changed_through_replacement(self): def test_tuples_of_one_look_peculiar(self): self.assertEqual(__, (1).__class__) self.assertEqual(__, (1,).__class__) - self.assertEqual(__, ("Hello comma!", )) + self.assertEqual(__, ("I'm a tuple",)) + self.assertEqual(__, ("Not a tuple")) def test_tuple_constructor_can_be_surprising(self): self.assertEqual(__, tuple("Surprise!")) diff --git a/python3/koans/about_tuples.py b/python3/koans/about_tuples.py index cc6ac5291..35a8e4a63 100644 --- a/python3/koans/about_tuples.py +++ b/python3/koans/about_tuples.py @@ -39,7 +39,8 @@ def test_tuples_can_only_be_changed_through_replacement(self): def test_tuples_of_one_look_peculiar(self): self.assertEqual(__, (1).__class__) self.assertEqual(__, (1,).__class__) - self.assertEqual(__, ("Hello comma!", )) + self.assertEqual(__, ("I'm a tuple",)) + self.assertEqual(__, ("Not a tuple")) def test_tuple_constructor_can_be_surprising(self): self.assertEqual(__, tuple("Surprise!"))