diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2019-02-09 16:56:59 +0000 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2019-02-11 00:15:46 +0000 |
commit | e73798976812e652320f096870359ef35ed069ff (patch) | |
tree | 0322f221eb757746747a9b20ae2c3620361d6437 /test | |
parent | ffc92d69bf2618aca35f2c523abde0a76657e3a2 (diff) |
Fix json extract operator for unfound case
Diffstat (limited to 'test')
-rw-r--r-- | test/scripts/0000-Basic/0002 | 3 | ||||
-rw-r--r-- | test/stdout/0002 | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/test/scripts/0000-Basic/0002 b/test/scripts/0000-Basic/0002 index e192a5593..7a9b38dba 100644 --- a/test/scripts/0000-Basic/0002 +++ b/test/scripts/0000-Basic/0002 @@ -902,6 +902,9 @@ expect: {"1":116, "2":943, "3":234} ${extract json{IDs}{ \{"id": \{"a":101, "b":102\}, "IDs": \{"1":116, "2":943, "3":234\}\} }} expect: {"1":116, "2":943, "3":234} +<${extract json{nonexistent}{ \{"id": \{"a":101, "b":102\}, "IDs": \{"1":116, "2":943, "3":234\}\} }}> +expect: <> + **** # Test "escape" with print_topbitchars exim -be -DPTBC=print_topbitchars diff --git a/test/stdout/0002 b/test/stdout/0002 index 949c35eb2..c2f5f2f3c 100644 --- a/test/stdout/0002 +++ b/test/stdout/0002 @@ -845,6 +845,9 @@ xyz > {"1":116, "2":943, "3":234} > expect: {"1":116, "2":943, "3":234} > +> <> +> expect: <> +> > > escape: B7·F2ò > |