Commit c0d6d52c authored by David Hrbáč's avatar David Hrbáč
Browse files

Unmanaged repo

parent dbac6949
#!/usr/bin/python
from pymath import *
import nose
def test_add_integers():
assert add(5, 3) == 8
assert Add(5, 3) == 8
def test_add_floats():
assert add(1.5, 2.5) == 4
assert Add(1.5, 2.5) == 4
def test_divide_integers():
assert divide(2, 10) == 0.2
assert Divide_numbers(2, 10) == 0.2
if __name__ == '__main__':
nose.run()
......@@ -6,4 +6,4 @@ def Add(num1, num2):
return num1 + num2
def Divide_numbers(numerator, denominator):
return numerator / denominator
return numerator * denominator
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment