コード例 #1
0
ファイル: test_intervals.py プロジェクト: xjyx/rbp-maps
def test_too_far_6():
    direction = -1
    anchor = 10
    offset = 5
    boundary = 11
    ref = 6
    test = intervals._too_far(anchor, offset, boundary, direction)
    assert test == ref
コード例 #2
0
ファイル: test_intervals.py プロジェクト: xjyx/rbp-maps
def test_too_far_3():
    direction = 1
    anchor = 10
    offset = 5
    boundary = 14
    ref = 1
    test = intervals._too_far(anchor, offset, boundary, direction)
    assert test == ref