(self)
| 239 | self.assertEqual(expect, result) |
| 240 | |
| 241 | def test_split(self): |
| 242 | expect = make_expression_graph({ |
| 243 | 'functionName': 'String.split', |
| 244 | 'arguments': { |
| 245 | 'regex': {'constantValue': 'b'}, |
| 246 | 'string': {'constantValue': 'abc'}, |
| 247 | }, |
| 248 | }) |
| 249 | expression = ee.String('abc').split('b') |
| 250 | result = json.loads(expression.serialize()) |
| 251 | self.assertEqual(expect, result) |
| 252 | |
| 253 | expression = ee.String('abc').split(regex='b') |
| 254 | result = json.loads(expression.serialize()) |
| 255 | self.assertEqual(expect, result) |
| 256 | |
| 257 | def test_to_lower_case(self): |
| 258 | expect = make_expression_graph({ |
nothing calls this directly
no test coverage detected