We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb6a397 commit aacf323Copy full SHA for aacf323
tests/custom_function_test.py
@@ -31,13 +31,3 @@ def test_map_with_lambda(self):
31
def test_map_with_function(self):
32
expression = jsonata.Jsonata("$map([1, 2, 3], function($v) { $v * $v })")
33
assert expression.evaluate(None) == [1, 4, 9]
34
-
35
- def test_singleton_map(self):
36
- expression = jsonata.Jsonata("$map([1], $square)[]")
37
- expression.register_lambda("square", lambda x: x * x)
38
- assert expression.evaluate(None) == [1]
39
40
- def test_singleton_map_with_chain(self):
41
- expression = jsonata.Jsonata("$ ~> $map($square)[]")
42
43
- assert expression.evaluate([1]) == [1]
0 commit comments