MCPcopy
hub / github.com/hyperopt/hyperopt / test_as_apply_tuple_of_literals

Function test_as_apply_tuple_of_literals

hyperopt/pyll/tests/test_base.py:61–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59
60
61def test_as_apply_tuple_of_literals():
62 l = (9, 3)
63 al = as_apply(l)
64 assert isinstance(al, Apply)
65 assert al.name == "pos_args"
66 assert isinstance(al.pos_args[0], Literal)
67 assert isinstance(al.pos_args[1], Literal)
68 al.pos_args[0]._obj == 9
69 al.pos_args[1]._obj == 3
70 assert len(al) == 2
71
72
73def test_as_apply_list_of_applies():

Callers

nothing calls this directly

Calls 1

as_applyFunction · 0.90

Tested by

no test coverage detected