Back to index

python3.2  3.2.2
Public Member Functions
test.test_fractions.GcdTest Class Reference

List of all members.

Public Member Functions

def testMisc

Detailed Description

Definition at line 79 of file test_fractions.py.


Member Function Documentation

Definition at line 81 of file test_fractions.py.

00081 
00082     def testMisc(self):
00083         self.assertEqual(0, gcd(0, 0))
00084         self.assertEqual(1, gcd(1, 0))
00085         self.assertEqual(-1, gcd(-1, 0))
00086         self.assertEqual(1, gcd(0, 1))
00087         self.assertEqual(-1, gcd(0, -1))
00088         self.assertEqual(1, gcd(7, 1))
00089         self.assertEqual(-1, gcd(7, -1))
00090         self.assertEqual(1, gcd(-23, 15))
00091         self.assertEqual(12, gcd(120, 84))
00092         self.assertEqual(-12, gcd(84, -120))
00093 

Here is the call graph for this function:


The documentation for this class was generated from the following file: