Ejemplo n.º 1
0
 def test_triple(self):
     """Test na trzyznakowym napisie."""
     self.assertEqual(bigrams("xyz"), ["xy", "yz"])
Ejemplo n.º 2
0
 def test_double(self):
     """Test na dwuznakowym napisie."""
     self.assertEqual(bigrams("xy"), ["xy"])
Ejemplo n.º 3
0
 def test_simple(self):
     """Prosty test."""
     self.assertEqual(bigrams("banana"), ["ba", "an", "na", "an", "na"])
Ejemplo n.º 4
0
 def test_triple(self):
     """Test na trzyznakowym napisie."""
     self.assertEqual(bigrams("xyz"), ["xy", "yz"])
Ejemplo n.º 5
0
 def test_double(self):
     """Test na dwuznakowym napisie."""
     self.assertEqual(bigrams("xy"), ["xy"])
Ejemplo n.º 6
0
 def test_simple(self):
     """Prosty test."""
     self.assertEqual(bigrams("banana"), ["ba", "an", "na", "an", "na"])