コード例 #1
0
 def test_fingerprint_keyer_without_removing_dups(self):
     """Testea la creación de una key fingerprint sin ordenar los tokens."""
     input_output_strings = [
         ("bbb\taaa bbb", "bbb aaa bbb"),
         ("aaa\tbbb bbb", "aaa bbb bbb"),
     ]
     for inp_string, out_exp in input_output_strings:
         self.assertEqual(fingerprint_keyer(inp_string, False, False),
                          out_exp)
コード例 #2
0
 def test_fingerprint_keyer_without_removing_dups(self):
     """Testea la creación de una key fingerprint sin ordenar los tokens."""
     input_output_strings = [
         ("bbb\taaa bbb", "bbb aaa bbb"),
         ("aaa\tbbb bbb", "aaa bbb bbb"),
     ]
     for inp_string, out_exp in input_output_strings:
         self.assertEqual(fingerprint_keyer(inp_string, False, False),
                          out_exp)
コード例 #3
0
 def test_fingerprint_keyer(self):
     """Testea la creación de una key fingerprint."""
     input_output_strings = [
         ("schön", "schon"),
         # ("Ære Øre Åre", "are aere ore"),
         # ("Straße","strasse"),
         #  test leading and trailing whitespace
         ("\tABC \t DEF ", "abc def"),
         ("bbb\taaa", "aaa bbb"),
         ("müller", "muller"),
         # ("müller","mueller"), # another possible interpretation
         # ("fiflij","fiflij"),
         # ("ﭏ","אל"),
         # ("œ ӕ","ae oe"),
         ("", ""),
     ]
     for inp_string, out_exp in input_output_strings:
         self.assertEqual(fingerprint_keyer(inp_string, True, True),
                          out_exp)
コード例 #4
0
 def test_fingerprint_keyer(self):
     """Testea la creación de una key fingerprint."""
     input_output_strings = [
         ("schön", "schon"),
         # ("Ære Øre Åre", "are aere ore"),
         # ("Straße","strasse"),
         #  test leading and trailing whitespace
         ("\tABC \t DEF ", "abc def"),
         ("bbb\taaa", "aaa bbb"),
         ("müller", "muller"),
         # ("müller","mueller"), # another possible interpretation
         # ("fiflij","fiflij"),
         # ("ﭏ","אל"),
         # ("œ ӕ","ae oe"),
         ("", ""),
     ]
     for inp_string, out_exp in input_output_strings:
         self.assertEqual(fingerprint_keyer(inp_string, True, True),
                          out_exp)