1
1
JSON Patch Tests
2
2
================
3
3
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 ) .
6
7
7
8
8
9
Test Format
@@ -21,7 +22,23 @@ test record is an object with the following members:
21
22
All fields except 'doc' and 'patch' are optional. Test records consisting only
22
23
of a comment are also OK.
23
24
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!
25
42
26
43
27
44
Credits
@@ -35,7 +52,7 @@ extended by [Mike McCabe](https://github.com/mikemccabe).
35
52
License
36
53
-------
37
54
38
- Copyright 2012 The Authors
55
+ Copyright 2014 The Authors
39
56
40
57
Licensed under the Apache License, Version 2.0 (the "License");
41
58
you may not use this file except in compliance with the License.
0 commit comments