11JSON Patch Tests
22================
33
4- These are test cases for implementations of the [ IETF JSON Patch
5- draft] ( http://tools.ietf.org/html/draft-ietf-appsawg-json-patch ) .
4+ These are test cases for implementations of [ IETF JSON Patch (RFC6902)] ( http://tools.ietf.org/html/rfc6902 ) .
5+
6+ Some implementations can be found at [ jsonpatch.com] ( http://jsonpatch.com ) .
67
78
89Test Format
@@ -21,7 +22,23 @@ test record is an object with the following members:
2122All fields except 'doc' and 'patch' are optional. Test records consisting only
2223of a comment are also OK.
2324
24- These tests are not complete, or even correct - help welcome!
25+
26+ Writing Tests
27+ -------------
28+
29+ All tests should have a descriptive comment. Tests should be as
30+ simple as possible - just what's required to test a specific piece of
31+ behavior. If you want to test interacting behaviors, create tests for
32+ each behavior as well as the interaction.
33+
34+ If an 'error' member is specified, the error text should describe the
35+ error the implementation should raise - * not* what's being tested.
36+ Implementation error strings will vary, but the suggested error should
37+ be easily matched to the implementation error string. Try to avoid
38+ creating error tests that might pass because an incorrect error was
39+ reported.
40+
41+ Please feel free to contribute!
2542
2643
2744Credits
@@ -35,7 +52,7 @@ extended by [Mike McCabe](https://github.com/mikemccabe).
3552License
3653-------
3754
38- Copyright 2012 The Authors
55+ Copyright 2014 The Authors
3956
4057 Licensed under the Apache License, Version 2.0 (the "License");
4158 you may not use this file except in compliance with the License.
0 commit comments