Browse Source

Add test for fixing parsing login when path has a function as argument to another function

Add test for fixing parsing login when path has a function as argument to another function
pull/989/head
abhishek kumar tiwari 1 year ago committed by GitHub
parent
commit
8df4507e9c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 7
      json-path/src/test/java/com/jayway/jsonpath/PathCompilerTest.java

7
json-path/src/test/java/com/jayway/jsonpath/PathCompilerTest.java

@ -323,4 +323,11 @@ public class PathCompilerTest {
public void property_must_be_separated_by_commas() {
compile("$['aaa'}'bbb']");
}
@Test
public void function_parameter_with_closing_paren() {
String json = "{}";
String result = JsonPath.read(json, "$.concat(\"Bob\", $.concat(\" Joe\", \" Alex\"))");
assertThat(result).isEqualTo("Bob Joe Alex");
}
}

Loading…
Cancel
Save