|
|
|
@ -209,4 +209,9 @@ public class InlineFilterTest extends BaseTest {
|
|
|
|
|
public void escape_pattern() { |
|
|
|
|
assertHasOneResult("[\"x\"]", "$[?(@ =~ /\\/|x/)]", conf); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
public void filter_evaluation_does_not_break_path_evaluation() { |
|
|
|
|
assertHasOneResult("[{\"s\": \"fo\", \"expected_size\": \"m\"}, {\"s\": \"lo\", \"expected_size\": 2}]", "$[?(@.s size @.expected_size)]", conf); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|