import codewars_test as test from solution import x # test.assert_equals(actual, expected, [optional] message) @test.describe("Main") def test_group(): @test.it("test case") def test_case(): test.assert_equals(x('olleh'), 'hello') test.assert_equals(x('ih'), 'hi') test.assert_equals(x('ecnaidar'), 'radiance')
- import codewars_test as test
from solution import reverse_word- from solution import x
- # test.assert_equals(actual, expected, [optional] message)
- @test.describe("Main")
- def test_group():
- @test.it("test case")
- def test_case():
test.assert_equals(reverse_word('olleh'), 'hello')test.assert_equals(reverse_word('ih'), 'hi')test.assert_equals(reverse_word('ecnaidar'), 'radiance')- test.assert_equals(x('olleh'), 'hello')
- test.assert_equals(x('ih'), 'hi')
- test.assert_equals(x('ecnaidar'), 'radiance')