コード例 #1
0
ファイル: support_test.py プロジェクト: RyanKung/pyschoof
 def f():
     inverse_modulo(2, 0)
コード例 #2
0
ファイル: support_test.py プロジェクト: pdinges/python-schoof
 def f():
     inverse_modulo(2, 0)
コード例 #3
0
ファイル: support_test.py プロジェクト: RyanKung/pyschoof
 def test_result(self):
     """Sample results"""
     self.assert_((inverse_modulo(3, 5) - 2) % 5 == 0)
     self.assert_((inverse_modulo(3, 7) - 5) % 7 == 0)
コード例 #4
0
ファイル: support_test.py プロジェクト: pdinges/python-schoof
 def test_result(self):
     """Sample results"""
     self.assert_( (inverse_modulo(3, 5) - 2) % 5 == 0 )
     self.assert_( (inverse_modulo(3, 7) - 5) % 7 == 0 )