Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/geekcomputers/Python
/ test_str
Method
test_str
linear-algebra-python/src/tests.py:31–36 ·
view source on GitHub ↗
test for toString() method
(self)
Source
from the content-addressed store, hash-verified
29
self.assertTrue(True)
30
31
def
test_str(self):
32
""
"
33
test
for
toString() method
34
""
"
35
x = Vector([0, 0, 0, 0, 0, 1])
36
self.assertEqual(x.__str__(),
"(0,0,0,0,0,1)"
)
37
38
def
test_size(self):
39
""
"
Callers
nothing calls this directly
Calls
2
__str__
Method · 0.95
Vector
Class · 0.85
Tested by
no test coverage detected