示例#1
0
 def test_permutate(self):
     sgnt = Signature('1001011')
     self.assertTrue(sgnt.count() == sgnt.permutate(
         SignaturePermutationWithTrie(7)).count())
示例#2
0
 def test_permutate(self):
     sgnt = Signature('1001011')
     self.assertTrue(sgnt.count()==sgnt.permutate(SignaturePermutationWithTrie(7)).count())
示例#3
0
 def test_initialization(self):
     sgnt = Signature('1001011')
     self.assertEqual(sgnt.count(), 4)
     sgnt = Signature()
     self.assertEqual(sgnt.count(), 0)
示例#4
0
 def test_initialization(self):
     sgnt = Signature('1001011')
     self.assertEqual(sgnt.count(), 4)
     sgnt = Signature()
     self.assertEqual(sgnt.count(), 0)