コード例 #1
0
ファイル: tuples_steps.py プロジェクト: pcn/trtc
def step_impl(context, x, y, z):
    context.p = tuples.Point(x, y, z)
コード例 #2
0
ファイル: tuples_steps.py プロジェクト: pcn/trtc
def step_impl(context):
    assert type(context.b) != type(tuples.Point(0, 0, 0))
コード例 #3
0
ファイル: tuples_steps.py プロジェクト: pcn/trtc
def step_impl(context, x, y, z):
    result = tuples.t_sub(context.p, context.v)
    should_equal = tuples.Point(x, y, z)
    assert (result == should_equal)
コード例 #4
0
ファイル: tuples_steps.py プロジェクト: pcn/trtc
def step_impl(context, x, y, z, w):
    # a == (4.3, -4.2, 3.1, 1.0)
    context.a = tuples.Point(x, y, z)
コード例 #5
0
ファイル: tuples_steps.py プロジェクト: pcn/trtc
def step_impl(context, x, y, z):
    context.p2 = tuples.Point(int(x), int(y), int(z))