(self)
| 313 | self.assertEqual(expect, result) |
| 314 | |
| 315 | def test_bitwise_and(self): |
| 316 | expect = make_expression_graph({ |
| 317 | 'arguments': { |
| 318 | 'left': ARRAY_ONE, |
| 319 | 'right': ARRAY_TWO, |
| 320 | }, |
| 321 | 'functionName': 'Array.bitwiseAnd', |
| 322 | }) |
| 323 | expression = ee.Array([1]).bitwiseAnd([2]) |
| 324 | result = json.loads(expression.serialize()) |
| 325 | self.assertEqual(expect, result) |
| 326 | |
| 327 | expression = ee.Array([1]).bitwiseAnd(right=[2]) |
| 328 | result = json.loads(expression.serialize()) |
| 329 | self.assertEqual(expect, result) |
| 330 | |
| 331 | def test_bitwise_not(self): |
| 332 | expect = make_expression_graph({ |
nothing calls this directly
no test coverage detected