aboutsummaryrefslogtreecommitdiffstats
path: root/test_strings.py
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-11-29 18:56:25 +0100
committerMatěj Cepl <mcepl@redhat.com>2011-11-29 18:56:25 +0100
commit2f56bd116a0b29aef3d3475ad4d70d6935a41727 (patch)
tree1da507ecb6c6670ffa472a3b9a25bc64d8735ecd /test_strings.py
parentf294826709fe69222a164acdb8e14c965deafe91 (diff)
downloadjson_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.py19
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,