MCPcopy
hub / github.com/google/earthengine-api / test_bits_to_array

Method test_bits_to_array

python/ee/tests/ee_array_test.py:302–313  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

300 self.assertEqual(expect, result)
301
302 def test_bits_to_array(self):
303 expect = make_expression_graph({
304 'arguments': {'input': {'constantValue': 1}},
305 'functionName': 'Array.bitsToArray',
306 })
307 expression = ee.Array.bitsToArray(1)
308 result = json.loads(expression.serialize())
309 self.assertEqual(expect, result)
310
311 expression = ee.Array.bitsToArray(input=1)
312 result = json.loads(expression.serialize())
313 self.assertEqual(expect, result)
314
315 def test_bitwise_and(self):
316 expect = make_expression_graph({

Callers

nothing calls this directly

Calls 3

bitsToArrayMethod · 0.80
make_expression_graphFunction · 0.70
serializeMethod · 0.45

Tested by

no test coverage detected