MCPcopy Create free account
hub / github.com/numpy/numpy / test_physical_quantities

Method test_physical_quantities

numpy/core/tests/test_function_base.py:351–354  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

349 assert_equal(lim2, t2)
350
351 def test_physical_quantities(self):
352 a = PhysicalQuantity(0.0)
353 b = PhysicalQuantity(1.0)
354 assert_equal(linspace(a, b), linspace(0.0, 1.0))
355
356 def test_subclass(self):
357 a = array(0).view(PhysicalQuantity2)

Callers

nothing calls this directly

Calls 3

assert_equalFunction · 0.90
linspaceFunction · 0.90
PhysicalQuantityClass · 0.85

Tested by

no test coverage detected