import codewars_test as test # TODO Write tests import solution # or from solution import example # test.assert_equals(actual, expected, [optional] message) @test.describe("Example") def tests(): @test.it("test split_strings") def test_split_strings(): test.assert_equals(split("aa"), ['a','a']) test.assert_equals(split("aabc12"), ['a','a','b','c','1','2'])
- import codewars_test as test
- # TODO Write tests
- import solution # or from solution import example
- # test.assert_equals(actual, expected, [optional] message)
- @test.describe("Example")
def test_group():@test.it("test case")def test_case():pass- def tests():
- @test.it("test split_strings")
- def test_split_strings():
- test.assert_equals(split("aa"), ['a','a'])
- test.assert_equals(split("aabc12"), ['a','a','b','c','1','2'])