MCPcopy Create free account
hub / github.com/pydata/numexpr / test_list_literal

Method test_list_literal

numexpr3/tests/test_numexpr.py:257–261  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

255
256
257 def test_list_literal(self):
258 logger.info( 'Test list literal' )
259 a = np.arange(3)
260 out = ne3.NumExpr('a < [2,2,2]')()
261 npt.assert_array_equal( out, a < np.array([2,2,2]) )
262
263 def test_casting(self):
264 logging.info( "Test safe, unsafe, and func helper casting")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected