(self)
| 208 | self.assertEqual(expect, result) |
| 209 | |
| 210 | def test_add(self): |
| 211 | expect = make_expression_graph({ |
| 212 | 'arguments': { |
| 213 | 'left': ARRAY_ONE, |
| 214 | 'right': ARRAY_TWO, |
| 215 | }, |
| 216 | 'functionName': 'Array.add', |
| 217 | }) |
| 218 | expression = ee.Array([1]).add([2]) |
| 219 | result = json.loads(expression.serialize()) |
| 220 | self.assertEqual(expect, result) |
| 221 | |
| 222 | expression = ee.Array([1]).add(right=[2]) |
| 223 | result = json.loads(expression.serialize()) |
| 224 | self.assertEqual(expect, result) |
| 225 | |
| 226 | def test_and(self): |
| 227 | expect = make_expression_graph({ |
nothing calls this directly
no test coverage detected