Ad
  • Custom User Avatar

    import codewars_test as test

    x = lambda a: ''.join(reversed(a))

    @test.describe("Main")
    def main_tests():
    @test.it("Test 1")
    def test1():
    test.assert_equals(x("hello"), "olleh")

    @test.it("Test 2")
    def test2():
        test.assert_equals(x("python"), "nohtyp")
    
    @test.it("Test 3")
    def test3():
        test.assert_equals(x("world"), "dlrow")
    
    @test.it("Test 4")
    def test4():
        test.assert_equals(x("abcdef"), "fedcba")
    
    @test.it("Test 5")
    def test5():
        test.assert_equals(x(""), "")
    

    test.run_tests()