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

Method test_euclidLength

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

test for the eulidean length

(self)

Source from the content-addressed store, hash-verified

43 self.assertEqual(x.size(), 4)
44
45 def test_euclidLength(self):
46 """
47 test for the eulidean length
48 """
49 x = Vector([1, 2])
50 self.assertAlmostEqual(x.eulidLength(), 2.236, 3)
51
52 def test_add(self):
53 """

Callers

nothing calls this directly

Calls 2

eulidLengthMethod · 0.95
VectorClass · 0.85

Tested by

no test coverage detected