Skip to content

Commit

Permalink
Applied patch from tshepang to fix issue 14 in bitbucket tracker: Add…
Browse files Browse the repository at this point in the history
…ed tuple tests
  • Loading branch information
gregmalcolm committed Sep 8, 2010
1 parent 42c72a1 commit a45f54b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python 2/koans/about_true_and_false.py
Expand Up @@ -24,6 +24,7 @@ def test_zero_is_treated_as_false(self):

def test_empty_collections_are_treated_as_false(self):
self.assertEqual(__, self.truth_value([]))
self.assertEqual(__, self.truth_value(()))
self.assertEqual(__, self.truth_value({}))
self.assertEqual(__, self.truth_value(set()))

Expand All @@ -32,5 +33,6 @@ def test_blank_strings_are_treated_as_false(self):

def test_everything_else_is_treated_as_true(self):
self.assertEqual(__, self.truth_value(1))
self.assertEqual(__, self.truth_value(1,))
self.assertEqual(__, self.truth_value("Python is named after Monty Python"))
self.assertEqual(__, self.truth_value(' '))
2 changes: 2 additions & 0 deletions python 3/koans/about_true_and_false.py
Expand Up @@ -24,6 +24,7 @@ def test_zero_is_treated_as_false(self):

def test_empty_collections_are_treated_as_false(self):
self.assertEqual(__, self.truth_value([]))
self.assertEqual(__, self.truth_value(()))
self.assertEqual(__, self.truth_value({}))
self.assertEqual(__, self.truth_value(set()))

Expand All @@ -32,5 +33,6 @@ def test_blank_strings_are_treated_as_false(self):

def test_everything_else_is_treated_as_true(self):
self.assertEqual(__, self.truth_value(1))
self.assertEqual(__, self.truth_value(1,))
self.assertEqual(__, self.truth_value("Python is named after Monty Python"))
self.assertEqual(__, self.truth_value(' '))

0 comments on commit a45f54b

Please sign in to comment.