def sayHello(say): say.append("bulbul") return say
- def sayHello(say):
l = ["bulbul", "8===D"]return l- say.append("bulbul")
- return say
# 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"])
- # 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 = 3Test.assert_equals(sayHello(say), ["bulbul", "8===D"])- say = ["Hi!", "Oh My!", "OMG", "Hello!"]
- Test.assert_equals(sayHello(say), ["Hi!", "Oh My!", "OMG", "Hello!","bulbul"])