Beispiel #1
0
 def testGetRing(self):
     elem = FinitePrimeFieldElement(12, 17)
     f17 = elem.getRing()
     self.failUnless(isinstance(f17, FinitePrimeField))
     self.failUnless(elem in f17)
 def testGetRing(self):
     elem = FinitePrimeFieldElement(12, 17)
     f17 = elem.getRing()
     self.assertTrue(isinstance(f17, FinitePrimeField))
     self.assertTrue(elem in f17)