MCPcopy 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

sizeMethod · 0.95
VectorClass · 0.85

Tested by

no test coverage detected