MCPcopy
hub / github.com/huggingface/smolagents / test_len

Method test_len

tests/test_local_python_executor.py:2133–2136  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2131 assert repr(pc) == "PrintContainer(Hello)"
2132
2133 def test_len(self):
2134 pc = PrintContainer()
2135 pc.append("Hello")
2136 assert len(pc) == 5
2137
2138
2139def test_fix_final_answer_code():

Callers

nothing calls this directly

Calls 2

appendMethod · 0.95
PrintContainerClass · 0.90

Tested by

no test coverage detected