kyu_5.josephus_survivor package
Submodules
kyu_5.josephus_survivor.josephus_survivor module
Test for -> Josephus Survivor.
Created by Egor Kostan. GitHub: https://github.com/ikostan
kyu_5.josephus_survivor.test_josephus_survivor module
Test for -> Josephus Survivor.
Created by Egor Kostan. GitHub: https://github.com/ikostan
- class kyu_5.josephus_survivor.test_josephus_survivor.JosephusSurvivorTestCase(methodName='runTest')[source]
Bases:
TestCaseTesting josephus_survivor function.
- _classSetupFailed = False
- _class_cleanups = []
- pytestmark = [Mark(name='skip', args=(), kwargs={'reason': 'The solution is not ready'})]
- test_josephus_survivor = None
- test_josephus_survivor_0(**kw)
Testing josephus_survivor function with various test data [with test_data=(7, 3), expected=4].
In this kata you have to correctly return who is the “survivor”, ie: the last element of a Josephus permutation. :return:
- test_josephus_survivor_1(**kw)
Testing josephus_survivor function with various test data [with test_data=(11, 19), expected=10].
In this kata you have to correctly return who is the “survivor”, ie: the last element of a Josephus permutation. :return:
- test_josephus_survivor_2(**kw)
Testing josephus_survivor function with various test data [with test_data=(1, 300), expected=1].
In this kata you have to correctly return who is the “survivor”, ie: the last element of a Josephus permutation. :return:
- test_josephus_survivor_3(**kw)
Testing josephus_survivor function with various test data [with test_data=(14, 2), expected=13].
In this kata you have to correctly return who is the “survivor”, ie: the last element of a Josephus permutation. :return:
- test_josephus_survivor_4(**kw)
Testing josephus_survivor function with various test data [with test_data=(100, 1), expected=100].
In this kata you have to correctly return who is the “survivor”, ie: the last element of a Josephus permutation. :return:
Module contents
Josephus Survivor.