Comments (3)
The purpose of this test suite is to minimize the differences between JSON-P implementations in their behavior.
Please see the statement below found in the API Javadoc:
https://eclipse-ee4j.github.io/jsonp/docs/api/?overview-summary.html
The map object's iteration ordering is based on the order in which name/value pairs are added to the corresponding builder or the order in which name/value pairs appear in the corresponding stream.
from jsonp-test-suite.
The quote you pasted isn't from the link just above it. In fact, the link you show is another case of the implementation disagreeing with its own specification/documentation. If you go to that link (https://eclipse-ee4j.github.io/jsonp/docs/api/?overview-summary.html), it specifically states:
JsonObject provides a Map view to access the unordered collection of zero or more name/value pairs from the model.
i.e. the API itself, JSON-P, states that a JsonObject is an unordered collection.
I'll pose the same question I did in #2: When the implementation disagrees with its own documentation, what should we be testing? I think the implementation has a bug or its official API specification needs to change.
from jsonp-test-suite.
@ssilverman
As you show me, there are some errors in the API documentation, but these errors are not my faults.
When we cannot judge what is correct behavior from the specification and API Javadoc, we should respect the Reference Implementation, because it is offered to be referenced by implementators.
Also I believe that more deterministic behavior is preferable for the API users.
from jsonp-test-suite.
Related Issues (12)
- Hex escapes should allow lower- or upper-case letters A-F HOT 14
- JsonExclusiveBadTerminationTestCase and EOF behaviour, expect exception? HOT 2
- The JsonPointer tests should expect the target to be modified HOT 3
- Two possible outputs for Double?
- JsonPointer syntax errors should not be valid HOT 11
- getConfigInUseShouldNotContainUnknownProperty checks that config properties are removed, but shouldn't HOT 1
- String comparisons should normalize to ASCII HOT 10
- G_CLEF string should escape the slashes HOT 2
- thrown.getMessage() should first check if thrown is null HOT 2
- I wish the failing tests used zero-based indexes HOT 1
- Empty JSON should cause an exception, according to the grammar HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jsonp-test-suite.