import codewars_test as test # TODO Write tests import solution # or from solution import example # test.assert_equals(actual, expected, [optional] message) @test.describe("Check:") def test_group(): @test.it("Some simple cases") def test_case(): test.assert_equals(power(2,5), 2**5) test.assert_equals(power(3,50), 3**50) test.assert_equals(power(2,200), 2**200) test.assert_equals(power(200,0), 1) test.assert_equals(power(2, -5), 2 ** -5) test.assert_equals(power(-3, 5), (-3) ** 5) test.assert_equals(power(2, -200), 2 ** -200) test.assert_equals(power(-200, 0), 1)
- import codewars_test as test
- # TODO Write tests
- import solution # or from solution import example
- # test.assert_equals(actual, expected, [optional] message)
- @test.describe("Check:")
- def test_group():
- @test.it("Some simple cases")
- def test_case():
- test.assert_equals(power(2,5), 2**5)
- test.assert_equals(power(3,50), 3**50)
- test.assert_equals(power(2,200), 2**200)
- test.assert_equals(power(200,0), 1)
- test.assert_equals(power(2, -5), 2 ** -5)
- test.assert_equals(power(-3, 5), (-3) ** 5)
- test.assert_equals(power(2, -200), 2 ** -200)
- test.assert_equals(power(-200, 0), 1)
import codewars_test as test # TODO Write tests import solution # or from solution import example # test.assert_equals(actual, expected, [optional] message) @test.describe("Check:") def test_group(): @test.it("Some simple cases") def test_case(): test.assert_equals(power(2,5), 2**5) test.assert_equals(power(3,50), 3**50) test.assert_equals(power(2,200), 2**200) test.assert_equals(power(200,0), 1)
- import codewars_test as test
- # TODO Write tests
- import solution # or from solution import example
- # test.assert_equals(actual, expected, [optional] message)
- @test.describe("Check:")
- def test_group():
- @test.it("Some simple cases")
- def test_case():
- test.assert_equals(power(2,5), 2**5)
- test.assert_equals(power(3,50), 3**50)
- test.assert_equals(power(2,200), 2**200)
- test.assert_equals(power(200,0), 1)