MCPcopy Create free account
hub / github.com/Distributive-Network/PythonMonkey / test_string_proxy_copy

Function test_string_proxy_copy

tests/python/test_strings.py:277–283  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

275
276
277def test_string_proxy_copy():
278 world = pm.eval('(function() {return "World"})')
279 say = pm.eval('(function(who) { return `Hello ${who}`})')
280 who = world()
281 hello_world = say(copy.copy(who))
282 assert hello_world == "Hello World"
283 assert hello_world is not who
284
285def test_string_proxy_deepcopy():
286 world = pm.eval('(function() {return "World"})')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected