Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/geekcomputers/Python
/ test_size
Method
test_size
linear-algebra-python/src/tests.py:38–43 ·
view source on GitHub ↗
test for size()-method
(self)
Source
from the content-addressed store, hash-verified
36
self.assertEqual(x.__str__(),
"(0,0,0,0,0,1)"
)
37
38
def
test_size(self):
39
""
"
40
test
for
size()-method
41
""
"
42
x = Vector([1, 2, 3, 4])
43
self.assertEqual(x.size(), 4)
44
45
def
test_euclidLength(self):
46
""
"
Callers
nothing calls this directly
Calls
2
size
Method · 0.95
Vector
Class · 0.85
Tested by
no test coverage detected