Skip to content

Commit aacf323

Browse files
authoredSep 27, 2024
Update custom_function_test.py
1 parent fb6a397 commit aacf323

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed
 

‎tests/custom_function_test.py

-10
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,3 @@ def test_map_with_lambda(self):
3131
def test_map_with_function(self):
3232
expression = jsonata.Jsonata("$map([1, 2, 3], function($v) { $v * $v })")
3333
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-
expression.register_lambda("square", lambda x: x * x)
43-
assert expression.evaluate([1]) == [1]

0 commit comments

Comments
 (0)
Failed to load comments.