priops.test.test_casting
Tests addition X() + Z() via Z -> Y.
-
priops.test.test_casting.add_xy(x, y)[source]
Adds an X instance and a
Y instance.
-
priops.test.test_casting.cast_yz(z)[source]
Casts a Z instance to a
Y instance.
-
priops.test.test_casting.p
A graph of edges.
-
priops.test.test_casting.edge_add_xy
Calls some callable on call time.
-
priops.test.test_casting.edge_cast_yz
Calls some callable on call time.
-
priops.test.test_casting.cpf
This Pathfinder can be called, and the
input node will be constructed from
InstanceNode.
-
priops.test.test_casting.test_succeeds()[source]
Tests if X(1) + Z(3) == 4.
-
priops.test.test_casting.test_direct()[source]
Tests if X(1) + Y(2) == 3 still.
-
priops.test.test_casting.test_fails(*arg, **kw)[source]
Tests that X(10) cannot be coerced with X(20).