Skip to content

Commit 602498b

Browse files
danwchankjc
authored andcommitted
tweaked the tuple lesson for greater clarity (#167)
* tweaked the tuple lesson for greater clarity
1 parent f4b2b8d commit 602498b

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

python2/koans/about_tuples.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ def test_tuples_can_only_be_changed_through_replacement(self):
4141
def test_tuples_of_one_look_peculiar(self):
4242
self.assertEqual(__, (1).__class__)
4343
self.assertEqual(__, (1,).__class__)
44-
self.assertEqual(__, ("Hello comma!", ))
44+
self.assertEqual(__, ("I'm a tuple",))
45+
self.assertEqual(__, ("Not a tuple"))
4546

4647
def test_tuple_constructor_can_be_surprising(self):
4748
self.assertEqual(__, tuple("Surprise!"))

python3/koans/about_tuples.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ def test_tuples_can_only_be_changed_through_replacement(self):
3939
def test_tuples_of_one_look_peculiar(self):
4040
self.assertEqual(__, (1).__class__)
4141
self.assertEqual(__, (1,).__class__)
42-
self.assertEqual(__, ("Hello comma!", ))
42+
self.assertEqual(__, ("I'm a tuple",))
43+
self.assertEqual(__, ("Not a tuple"))
4344

4445
def test_tuple_constructor_can_be_surprising(self):
4546
self.assertEqual(__, tuple("Surprise!"))

0 commit comments

Comments
 (0)