diff --git a/lib/ultrajson.h b/lib/ultrajson.h index 2165b68..885f9f7 100644 --- a/lib/ultrajson.h +++ b/lib/ultrajson.h @@ -337,7 +337,6 @@ EXPORTFUNCTION JSOBJ JSON_DecodeObject(JSONObjectDecoder *dec, const char *buffe #define DCONV_DECIMAL_IN_SHORTEST_LOW -4 #define DCONV_DECIMAL_IN_SHORTEST_HIGH 16 -# enum dconv_d2s_flags { DCONV_D2S_NO_FLAGS = 0, diff --git a/tests/test_ujson.py b/tests/test_ujson.py index 991e094..f6eedda 100644 --- a/tests/test_ujson.py +++ b/tests/test_ujson.py @@ -78,7 +78,8 @@ def test_double_long_decimal_issue(): assert sut == decoded -@pytest.mark.parametrize("val", [1e-4, 1e0, 1e10, 1e15, 1e16, 1e20]) +# NOTE: can't match exponents -9 to -5; Python 0-pads +@pytest.mark.parametrize("val", [1e-10, 1e-4, 1e10, 1e15, 1e16, 1e30]) def test_encode_float_string_rep(val): assert ujson.dumps(val) == json.dumps(val)