"""Robot helper: verify TransformExecutor runs a transform."""

from cleveragents.tool.wrapping import TransformExecutor

code = 'def transform(x):\n    return {"passed": x.get("ok"), "message": "done"}\n'
t = TransformExecutor(code, "test/t")
r = t.execute({"ok": True})
assert r["passed"] is True
print("OK")
