Giter Site home page Giter Site logo

Comments (3)

leadpony avatar leadpony commented on July 23, 2024

@ssilverman

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.

ssilverman avatar ssilverman commented on July 23, 2024

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.

leadpony avatar leadpony commented on July 23, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.