You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#[test]
fn unsupported_in_filter() {
setup();
let json = json!([{
"a": {"x": {"i": 10}},
"b": {"x": {"i": 20, "j": 5}}
}]);
select_and_then_compare("$..x[?(@.i>10)]", json.clone(), json!([{"i": 20,"j": 5}]));
// Should not panic ('empty term left')
select_and_then_compare("$..x[?($.i>10)]", json.clone(), json!([]));
}
The filter ?($.i>10) panics
---- unsupported_in_filter stdout ----
thread 'unsupported_in_filter' panicked at 'empty term left', src/selector/selector_impl.rs:344:18
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
No description provided.
The text was updated successfully, but these errors were encountered: