(self)
| 237 | self.assertEqual(expect, result) |
| 238 | |
| 239 | def test_get(self): |
| 240 | expect = make_expression_graph({ |
| 241 | 'arguments': { |
| 242 | 'list': {'constantValue': [1]}, |
| 243 | 'index': {'constantValue': 2}, |
| 244 | }, |
| 245 | 'functionName': 'List.get', |
| 246 | }) |
| 247 | expression = ee.List([1]).get(2) |
| 248 | result = json.loads(expression.serialize()) |
| 249 | self.assertEqual(expect, result) |
| 250 | |
| 251 | expression = ee.List([1]).get(index=2) |
| 252 | result = json.loads(expression.serialize()) |
| 253 | self.assertEqual(expect, result) |
| 254 | |
| 255 | def test_getArray(self): |
| 256 | expect = make_expression_graph({ |
nothing calls this directly
no test coverage detected