Exemplo n.º 1
0
 def test_empty(self):
     """Test na pustej liście."""
     self.assertEqual(uniq_elements([]), 0)
Exemplo n.º 2
0
 def test_number_list(self):
     """Test na liście liczb."""
     self.assertEqual(uniq_elements([1, 1, 2, 1, 10, 20, 2]), 4)
Exemplo n.º 3
0
 def test_tuple(self):
     """Test na krotce."""
     self.assertEqual(uniq_elements((1, 2, 3, 1)), 3)
Exemplo n.º 4
0
 def test_string(self):
     """Test na napisie."""
     self.assertEqual(uniq_elements("abracadabra"), 5)
Exemplo n.º 5
0
 def test_empty(self):
     """Test na pustej liście."""
     self.assertEqual(uniq_elements([]), 0)
Exemplo n.º 6
0
 def test_tuple(self):
     """Test na krotce."""
     self.assertEqual(uniq_elements((1, 2, 3, 1)), 3)
Exemplo n.º 7
0
 def test_number_list(self):
     """Test na liście liczb."""
     self.assertEqual(uniq_elements([1, 1, 2, 1, 10, 20, 2]), 4)
Exemplo n.º 8
0
 def test_string(self):
     """Test na napisie."""
     self.assertEqual(uniq_elements("abracadabra"), 5)