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