def myMap(mine): l = [i+1 for i in mine] return l
def sayHello(say):say.append("bulbul")return say- def myMap(mine):
- l = [i+1 for i in mine]
- return l
# 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 mine = [1, 2, 3, 4, 5, 6, 7, 8, 9] Test.assert_equals(myMap(mine), [2, 3, 4, 5, 6, 7, 8, 9, 10])
- # 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
say = ["Hi!", "Oh My!", "OMG", "Hello!"]Test.assert_equals(sayHello(say), ["Hi!", "Oh My!", "OMG", "Hello!","bulbul"])- mine = [1, 2, 3, 4, 5, 6, 7, 8, 9]
- Test.assert_equals(myMap(mine), [2, 3, 4, 5, 6, 7, 8, 9, 10])
There can only be one bulbul!
def sayHello(say):
l = ["bulbul", "8===D"]
return l
# 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
say = 3
Test.assert_equals(sayHello(say), ["bulbul", "8===D"])