kyu_6.find_the_odd_int package
Submodules
kyu_6.find_the_odd_int.find_the_odd_int module
Solution for -> Find the odd int.
Created by Egor Kostan. GitHub: https://github.com/ikostan
kyu_6.find_the_odd_int.test_find_the_odd_int module
Test for -> Find the odd int.
Created by Egor Kostan. GitHub: https://github.com/ikostan
- class kyu_6.find_the_odd_int.test_find_the_odd_int.FindTheOddIntTestCase(methodName='runTest')[source]
Bases:
TestCaseTesting find_it function.
- _classSetupFailed = False
- _class_cleanups = []
- test_something = None
- test_something_0(**kw)
Sample testing [with lst=[20, 1, -1, 2, -2, 3, 3, 5, 5, 1, 2, 4, 20, 4, -1, -2, 5], expected=5, msg=’should return 5 (because it appears 3 times)’].
- Returns:
- test_something_1(**kw)
Sample testing [with lst=[5, 4, 3, 2, 1, 5, 4, 3, 2, 10, 10], expected=1, msg=’should return 1 (because it appears 1 time)’].
- Returns:
- test_something_2(**kw)
Sample testing [with lst=[-15, -14, -11, -11, -7, -7, -7,…-7, -15, -15, -15, -5, -15, -15], expected=-5, msg=’Random tests’].
- Returns:
- test_something_3(**kw)
Sample testing [with lst=[14, 2, -3, -12, -17, 14, 2, 2, …, -17, -12, -17, -1, 14, -12, 2], expected=2, msg=’Random tests’].
- Returns:
Module contents
Find the odd int.