diff options
author | Matěj Cepl <mcepl@redhat.com> | 2011-11-29 18:56:25 +0100 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2011-11-29 18:56:25 +0100 |
commit | 2f56bd116a0b29aef3d3475ad4d70d6935a41727 (patch) | |
tree | 1da507ecb6c6670ffa472a3b9a25bc64d8735ecd /test_strings.py | |
parent | f294826709fe69222a164acdb8e14c965deafe91 (diff) | |
download | json_diff-2f56bd116a0b29aef3d3475ad4d70d6935a41727.tar.gz |
Add option -a to ignore appended keys (for comparing changing piglit tests).
Fix #35
Diffstat (limited to 'test_strings.py')
-rw-r--r-- | test_strings.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test_strings.py b/test_strings.py index 1935912..31ab50f 100644 --- a/test_strings.py +++ b/test_strings.py @@ -173,6 +173,25 @@ NESTED_DIFF_INCL = u""" } """ +NESTED_DIFF_IGNORING = u""" +{ + "_remove": { + "b": 2, + "ignore": { + "else": true + } + }, + "_update": { + "a": 2, + "child": { + "_update": { + "nome": "Maruška" + } + } + } +} +""" + ARRAY_OLD = u""" { "a": 1, |