leadpony / jsonp-test-suite

Test Suite for implementations of Jakarta JSON Processing API (JSON-P)
Apache License 2.0
3 stars 2 forks source link

Two possible outputs for Double? #13

Open toddobryan opened 1 year ago

toddobryan commented 1 year ago

Referring to these cases in JsonGeneratorTest

    enum DoubleTestCase {
        ZERO(0.0, "0.0"),
        E(Math.E, "2.718281828459045"),
        PI(Math.PI, "3.141592653589793"),
        MAX_VALUE(Double.MAX_VALUE, "1.7976931348623157E308"),
        MIN_VALUE(Double.MIN_VALUE, "4.9E-324");

isn't the MAX_VALUE one also legal if there's a + between the E and 308?

It looks like the JSON grammar allows no character, a plus, or a minus.