Test the module
import mymath
def test_div():
assert mymath.div(6, 3) == 2
assert mymath.div(42, 2) == 21
def test_add():
assert mymath.add(2, 2) == 4
assert mymath.add(0, 0) == 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_div():
assert mymath.div(6, 3) == 2
assert mymath.div(42, 2) == 21
def test_add():
assert mymath.add(2, 2) == 4
assert mymath.add(0, 0) == 0