mirror of
https://github.com/ultrajson/ultrajson.git
synced 2024-12-04 06:38:23 +01:00
cleanup
This commit is contained in:
parent
a48f8b22f1
commit
954a9a0a00
@ -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,
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user