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