Esempio n. 1
0
def test_quaternion_value():
    expected_result = """[
    0,
    0,
    0,
    1
]"""

    result = UnitQuaternionValue(values=[0, 0, 0, 1])

    assert repr(result) == expected_result
Esempio n. 2
0
def test_orientation():
    expected_result = """{
    "unitQuaternion": [
        0,
        0,
        0,
        1
    ]
}"""

    result = Orientation(unitQuaternion=UnitQuaternionValue(values=[0, 0, 0, 1]))

    assert repr(result) == expected_result