Exemplo n.º 1
0
 def test_double(self):
     """Test na dwuwyrazowym tekście."""
     self.assertEqual(code_words("one two"), [0, 1])
Exemplo n.º 2
0
 def test_singleton(self):
     """Test na jednowyrazowym tekście."""
     self.assertEqual(code_words("one"), [0])
Exemplo n.º 3
0
 def test_main(self):
     """Główny test."""
     self.assertEqual(
         code_words(
             "to jest przykładowe zdanie a to jest przykładowe sformułowanie"
         ), [0, 1, 2, 3, 4, 0, 1, 2, 5])
Exemplo n.º 4
0
 def test_double(self):
     """Test na dwuwyrazowym tekście."""
     self.assertEqual(code_words("one two"), [0, 1])
Exemplo n.º 5
0
 def test_singleton(self):
     """Test na jednowyrazowym tekście."""
     self.assertEqual(code_words("one"), [0])
Exemplo n.º 6
0
 def test_main(self):
     """Główny test."""
     self.assertEqual(code_words("to jest przykładowe zdanie a to jest przykładowe sformułowanie"),
                      [0, 1, 2, 3, 4, 0, 1, 2, 5])