(self)
| 224 | self.assertEqual(expect, result) |
| 225 | |
| 226 | def test_and(self): |
| 227 | expect = make_expression_graph({ |
| 228 | 'arguments': { |
| 229 | 'left': ARRAY_ONE, |
| 230 | 'right': ARRAY_TWO, |
| 231 | }, |
| 232 | 'functionName': 'Array.and', |
| 233 | }) |
| 234 | expression = ee.Array([1]).And([2]) |
| 235 | result = json.loads(expression.serialize()) |
| 236 | self.assertEqual(expect, result) |
| 237 | |
| 238 | expression = ee.Array([1]).And(right=[2]) |
| 239 | result = json.loads(expression.serialize()) |
| 240 | self.assertEqual(expect, result) |
| 241 | |
| 242 | def test_argmax(self): |
| 243 | expect = make_expression_graph({ |
nothing calls this directly
no test coverage detected