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

Function test_pyobjects_toString

tests/python/test_objects.py:136–142  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

134
135
136def test_pyobjects_toString():
137 class MyClass:
138 def __init__(self):
139 self.a = 42
140
141 o = MyClass()
142 assert '[object Object]' == pm.eval("(obj) => { return obj.toString(); }")(o)
143
144
145def test_pyobjects_toLocaleString():

Callers

nothing calls this directly

Calls 1

MyClassClass · 0.85

Tested by

no test coverage detected