Testing functions
import mymath
def test_math():
assert mymath.add(2, 3) == 5
assert mymath.div(6, 3) == 2
assert mymath.div(42, 1) == 42
assert mymath.add(-1, 1) == 0
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
import mymath
def test_math():
assert mymath.add(2, 3) == 5
assert mymath.div(6, 3) == 2
assert mymath.div(42, 1) == 42
assert mymath.add(-1, 1) == 0