def add(a, b): return a + b
def function():answer=a*breturn answer- def add(a, b):
- return a + b
# TODO: Replace examples and use TDD development by writing your own tests # These are some of the methods available: # test.expect(boolean, [optional] message) # test.assert_equals(actual, expected, [optional] message) # test.assert_not_equals(actual, expected, [optional] message) # You can use Test.describe and Test.it to write BDD style test groupings test.assert_equals(add(5, 7), 12) test.assert_equals(add(-9, 22), 13) test.assert_equals(add(-178, 45), -133)
- # TODO: Replace examples and use TDD development by writing your own tests
- # These are some of the methods available:
- # test.expect(boolean, [optional] message)
- # test.assert_equals(actual, expected, [optional] message)
- # test.assert_not_equals(actual, expected, [optional] message)
- # You can use Test.describe and Test.it to write BDD style test groupings
- test.assert_equals(add(5, 7), 12)
- test.assert_equals(add(-9, 22), 13)
- test.assert_equals(add(-178, 45), -133)