Commit 742c13c4 authored by Jason Swails's avatar Jason Swails
Browse files

Add Quantity multiplication to tests.

parent ba1af1ee
...@@ -690,3 +690,6 @@ class TestNumpyUnits(QuantityTestCase): ...@@ -690,3 +690,6 @@ class TestNumpyUnits(QuantityTestCase):
def testMultiplication(self): def testMultiplication(self):
""" Tests that units override numpy.ndarray multiplication """ """ Tests that units override numpy.ndarray multiplication """
self.assertIsInstance(np.arange(10)*u.angstroms, u.Quantity) self.assertIsInstance(np.arange(10)*u.angstroms, u.Quantity)
x = np.array([1]) * u.liters
self.assertIsInstance(x, u.Quantity)
self.assertIsInstance(np.arange(10) * x, u.Quantity)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment