示例#1
0
 def test_shi(self):
     # Assert integer hashing algorithm.
     for a, b in (
       (   100, "1c"), 
       (  1000, "G8"), 
       ( 10000, "2bI"), 
       (100000, "Q0u")):
         self.assertEqual(vector.shi(a), b)
     print("pattern.vector.shi()")
示例#2
0
 def test_shi(self):
     # Assert integer hashing algorithm.
     for a, b in (
             (100, "1c"),
             (1000, "G8"),
             (10000, "2bI"),
             (100000, "Q0u")):
         self.assertEqual(vector.shi(a), b)
     print("pattern.vector.shi()")