thanks to gcd beggug now tests on fractions work

This commit is contained in:
Lafrite 2014-02-22 10:13:12 +01:00
parent c3a6628ae3
commit 2e417f3bef
1 changed files with 8 additions and 8 deletions

View File

@ -299,17 +299,17 @@ class Fraction(object):
if __name__ == '__main__':
f = Fraction(1, 12)
g = Fraction(1, 12)
h = Fraction(-1,5)
t = Fraction(-4,5)
h = Fraction(1,-5)
t = Fraction(4,5)
print("---------")
for i in (f / t):
for i in (1 + h):
print(i)
print("---------")
for i in (f / h):
print(i)
print("---------")
for i in (f - g):
print(i)
#for i in (f + t):
# print(i)
#print("---------")
#for i in (f + g):
# print(i)
#print("---------")
#for i in (f - g):
# print(i)