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

Method test_str

linear_algebra_python/src/tests.py:27–32  ·  view source on GitHub ↗

test for toString() method

(self)

Source from the content-addressed store, hash-verified

25 except:
26 self.assertTrue(True)
27 def test_str(self):
28 """
29 test for toString() method
30 """
31 x = Vector([0,0,0,0,0,1])
32 self.assertEqual(str(x),"(0,0,0,0,0,1)")
33 def test_size(self):
34 """
35 test for size()-method

Callers

nothing calls this directly

Calls 1

VectorClass · 0.85

Tested by

no test coverage detected