stefankoegl / python-json-patch

Applying JSON Patches in Python
https://python-json-patch.readthedocs.org/
BSD 3-Clause "New" or "Revised" License
459 stars 97 forks source link

Some case Failed when run ext_test #111

Closed Alanscut closed 4 years ago

Alanscut commented 4 years ago

Hi @stefankoegl , when I run the external tests json-patch-tests, some case failed, I think some of them are bugs, others are due to unreasonable assertions. here is the list:

-4: index leading with zero should failed but success -- bug

      { "comment": "test with bad array number that has leading zeros",
        "doc": ["foo", "bar"],
        "patch": [{"op": "test", "path": "/00", "value": "foo"}],
        "error": "test op should reject the array value, it has leading zeros" },

      { "comment": "test with bad array number that has leading zeros",
        "doc": ["foo", "bar"],
        "patch": [{"op": "test", "path": "/01", "value": "bar"}],
        "error": "test op should reject the array value, it has leading zeros" }