MCPcopy Index your code
hub / github.com/google/earthengine-api / test_split

Method test_split

python/ee/tests/ee_string_test.py:241–255  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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({

Callers

nothing calls this directly

Calls 3

splitMethod · 0.80
make_expression_graphFunction · 0.70
serializeMethod · 0.45

Tested by

no test coverage detected