MCPcopy Index your code
hub / github.com/geekcomputers/Python / test_axpy

Method test_axpy

linear-algebra-python/src/tests.py:94–100  ·  view source on GitHub ↗

test for the global function axpy(...) (operation)

(self)

Source from the content-addressed store, hash-verified

92 self.assertEqual(unitBasisVector(3, 1).__str__(), "(0,1,0)")
93
94 def test_axpy(self):
95 """
96 test for the global function axpy(...) (operation)
97 """
98 x = Vector([1, 2, 3])
99 y = Vector([1, 0, 1])
100 self.assertEqual(axpy(2, x, y).__str__(), "(3,4,7)")
101
102 def test_copy(self):
103 """

Callers

nothing calls this directly

Calls 3

VectorClass · 0.85
axpyFunction · 0.85
__str__Method · 0.45

Tested by

no test coverage detected