예제 #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)