(self)
| 977 | self.assertEqual(expect, result) |
| 978 | |
| 979 | def test_array_cat(self): |
| 980 | axis = 1 |
| 981 | expect = make_expression_graph({ |
| 982 | 'arguments': { |
| 983 | 'image1': IMAGE, |
| 984 | 'image2': IMAGE_B, |
| 985 | 'axis': {'constantValue': axis}, |
| 986 | }, |
| 987 | 'functionName': 'Image.arrayCat', |
| 988 | }) |
| 989 | expression = ee.Image('a').arrayCat('b', axis) |
| 990 | result = json.loads(expression.serialize()) |
| 991 | self.assertEqual(expect, result) |
| 992 | |
| 993 | expression = ee.Image('a').arrayCat(image2='b', axis=axis) |
| 994 | result = json.loads(expression.serialize()) |
| 995 | self.assertEqual(expect, result) |
| 996 | |
| 997 | def test_array_dimensions(self): |
| 998 | expect = make_expression_graph({ |
nothing calls this directly
no test coverage detected