thanks to gcd beggug now tests on fractions work
This commit is contained in:
parent
c3a6628ae3
commit
2e417f3bef
@ -299,17 +299,17 @@ class Fraction(object):
|
|||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
f = Fraction(1, 12)
|
f = Fraction(1, 12)
|
||||||
g = Fraction(1, 12)
|
g = Fraction(1, 12)
|
||||||
h = Fraction(-1,5)
|
h = Fraction(1,-5)
|
||||||
t = Fraction(-4,5)
|
t = Fraction(4,5)
|
||||||
print("---------")
|
print("---------")
|
||||||
for i in (f / t):
|
for i in (1 + h):
|
||||||
print(i)
|
print(i)
|
||||||
print("---------")
|
print("---------")
|
||||||
for i in (f / h):
|
#for i in (f + t):
|
||||||
print(i)
|
# print(i)
|
||||||
print("---------")
|
#print("---------")
|
||||||
for i in (f - g):
|
#for i in (f + g):
|
||||||
print(i)
|
# print(i)
|
||||||
#print("---------")
|
#print("---------")
|
||||||
#for i in (f - g):
|
#for i in (f - g):
|
||||||
# print(i)
|
# print(i)
|
||||||
|
Loading…
Reference in New Issue
Block a user