From cbd619ec4315529ccb400f4f744e686e97eec458 Mon Sep 17 00:00:00 2001 From: Alexey Date: Fri, 31 May 2024 17:08:53 -0700 Subject: [PATCH] User-provided use case (#105) --- test/cases/extra/user_cases.json | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test/cases/extra/user_cases.json diff --git a/test/cases/extra/user_cases.json b/test/cases/extra/user_cases.json new file mode 100644 index 0000000..3006e8b --- /dev/null +++ b/test/cases/extra/user_cases.json @@ -0,0 +1,16 @@ +{ + "tests": [ + { + "name": "https://github.com/f3ath/jessie/issues/103", + "selector" : "$[?match(key(@), 'Serial .*')]", + "document" : { + "ynid": "AX0086HHN", + "Serial Group": "009722918001826A", + "Serial Name": "foo", + "Serial Number": "bar", + "serial whatever": "baz" + }, + "result": ["009722918001826A", "foo", "bar"] + } + ] +} \ No newline at end of file