MCPcopy Index your code
hub / github.com/pydata/xarray / test_binary_op

Method test_binary_op

xarray/tests/test_dask.py:176–181  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

174 self.assertLazyAndIdentical(u.round(), v.round())
175
176 def test_binary_op(self):
177 u = self.eager_var
178 v = self.lazy_var
179 self.assertLazyAndIdentical(2 * u, 2 * v)
180 self.assertLazyAndIdentical(u + u, v + v)
181 self.assertLazyAndIdentical(u[0] + u, v[0] + v)
182
183 def test_binary_op_bitshift(self) -> None:
184 # bit shifts only work on ints so we need to generate

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected