import sys
from pathlib import Path


PLUGIN_DIR = Path(__file__).resolve().parents[1] / "konabot" / "plugins" / "marchtoy"
if str(PLUGIN_DIR) not in sys.path:
    sys.path.insert(0, str(PLUGIN_DIR))

from obj import Transform


def test_translate_expression_puts_offset_in_matrix_column():
    transform = Transform().translate(1.0, 2.0, 3.0)

    expr = transform.p_expr()

    assert "float4(-1.0, -2.0, -3.0, 1.0)" in expr
