MCPcopy Index your code
hub / github.com/subbarayudu-j/TheAlgorithms-Python / test_axpy

Method test_axpy

linear_algebra_python/src/tests.py:82–88  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

80 """
81 self.assertEqual(str(unitBasisVector(3,1)),"(0,1,0)")
82 def test_axpy(self):
83 """
84 test for the global function axpy(...) (operation)
85 """
86 x = Vector([1,2,3])
87 y = Vector([1,0,1])
88 self.assertEqual(str(axpy(2,x,y)),"(3,4,7)")
89 def test_copy(self):
90 """
91 test for the copy()-method

Callers

nothing calls this directly

Calls 2

VectorClass · 0.85
axpyFunction · 0.85

Tested by

no test coverage detected