Home
DevCentral
Search
Configure Global Search
Log In
Transactions
P58
Change Details
Change Details
Old
New
Diff
def add(a, b): """Adds two numbers.""" return a + b def test_add(): """Tests add method.""" assert add(0, 0) == 0 assert add(2, 0) == 2 assert add(0, 2) == 2 assert add(3, 4) == 7 assert add(-3, 2) == -1
def add(a, b): """Adds two numbers.""" return a + b def test_add(): """Tests add method.""" assert add(0, 0) == 0 assert add(2, 0) == 2 assert add(0, 2) == 2 assert add(3, 4) == 7 assert add(-3, 2) == -1
Continue