Ejemplo n.º 1
0
 def test_should_return_four_when_list_contains_foo_bar_egg_and_spam(self):
     self.assertEqual(4, length_of_longest_string(["egg", "spam", "foo", "bar"]))
Ejemplo n.º 2
0
 def test_should_return_one_when_list_contains_string_with_no_characters(self):
     self.assertEqual(0, length_of_longest_string([""]))
Ejemplo n.º 3
0
 def test_should_return_one_when_list_contains_string_with_single_character(self):
     self.assertEqual(1, length_of_longest_string(["a"]))
Ejemplo n.º 4
0
 def test_should_return_zero_when_list_is_empty(self):
     self.assertEqual(0, length_of_longest_string([]))
Ejemplo n.º 5
0
 def test_should_return_four_when_list_contains_foo_bar_egg_and_spam(self):
     self.assertEqual(
         4, length_of_longest_string(['egg', 'spam', 'foo', 'bar']))
Ejemplo n.º 6
0
 def test_should_return_one_when_list_contains_string_with_single_character(self):
     self.assertEqual(1, length_of_longest_string(['a']))
Ejemplo n.º 7
0
 def test_should_return_zero_when_list_is_empty(self):
     self.assertEqual(0, length_of_longest_string([]))
Ejemplo n.º 8
0
 def test_should_return_four_when_list_contains_foo_bar_egg_and_spam(self):
     self.assertEqual(
         4, length_of_longest_string(['egg', 'spam', 'foo', 'bar']))