diff options
| author | Onur Gündüz <ogunduz@gmail.com> | 2026-09-29 14:34:42 +0200 |
|---|---|---|
| committer | Onur Gündüz <ogunduz@gmail.com> | 2026-09-29 14:34:42 +0200 |
| commit | 0ebdd46766744d649c93f4023d7f20cbfde51c1e (patch) | |
| tree | c1ce87732fa766b591e380e1fb0b0a3f86d77807 /tests/cli_tests.rs | |
| parent | 66e86c9693a7184944cdd2a0dbf1514e9d0125dc (diff) | |
| download | ele-0ebdd46766744d649c93f4023d7f20cbfde51c1e.tar.gz ele-0ebdd46766744d649c93f4023d7f20cbfde51c1e.zip | |
Implement map-key presence and repeated has traversal
Diffstat (limited to 'tests/cli_tests.rs')
| -rw-r--r-- | tests/cli_tests.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/cli_tests.rs b/tests/cli_tests.rs index 9e0f848..c283e19 100644 --- a/tests/cli_tests.rs +++ b/tests/cli_tests.rs @@ -128,6 +128,9 @@ fn has_and_boolean_values() { matches("meta:*", r#"{"meta":{"owner":"alice"}}"#, true); matches("meta:*", r#"{"meta":{}}"#, false); matches("meta.owner=alice", r#"{"meta":{"owner":"alice"}}"#, true); + matches("meta.zero:*", r#"{"meta":{"zero":0}}"#, true); + matches("r.foo:42", r#"{"r":[{"foo":42}]}"#, true); + matches("r.foo:42", r#"{"r":[{"foo":0}]}"#, false); } #[test] |
