kyu_6.find_the_in_between_point package
Submodules
kyu_6.find_the_in_between_point.solution module
Solution for -> Find the in-between point.
Created by Egor Kostan. GitHub: https://github.com/ikostan
kyu_6.find_the_in_between_point.test_middle_point module
Solution for -> Find the in-between point.
Created by Egor Kostan. GitHub: https://github.com/ikostan
- class kyu_6.find_the_in_between_point.test_middle_point.MiddlePointTestCase(methodName='runTest')[source]
Bases:
TestCaseTest ‘middle_point’ function.
- _classSetupFailed = False
- _class_cleanups = []
- test_middle_point = None
- test_middle_point_0(**kw)
Test ‘middle_point’ function with various test data [with coords=(1, 2, 3, 4, 5, 6, 7, 8, 9), expected=2, err=’Wrong point!’].
- Parameters:
coords
expected
err
- Returns:
- test_middle_point_1(**kw)
Test ‘middle_point’ function with various test data [with coords=(0, 2, 0, 6, -2, 8, 3, 0, 4), expected=3, err=’Wrong point!’].
- Parameters:
coords
expected
err
- Returns:
- test_middle_point_2(**kw)
Test ‘middle_point’ function with various test data [with coords=(0.25, 0.5, 0.75, 3.25, -0.5, -0.25, 1.0, 0.25, 0.5), expected=3, err=’Wrong point!’].
- Parameters:
coords
expected
err
- Returns:
- test_middle_point_3(**kw)
Test ‘middle_point’ function with various test data [with coords=(1, 0, 4, 5, 0, 6, -7, 0, 0), expected=1, err=’Wrong point!’].
- Parameters:
coords
expected
err
- Returns:
- test_middle_point_4(**kw)
Test ‘middle_point’ function with various test data [with coords=(-1, 0, 2, -2, 4, -1, -3, 8, -4), expected=2, err=’Wrong point!’].
- Parameters:
coords
expected
err
- Returns:
Module contents
Find the in-between point.