Skip to content

Commit

Permalink
move test into parametrized test
Browse files Browse the repository at this point in the history
  • Loading branch information
dwhswenson committed Nov 15, 2020
1 parent 6013e71 commit cdcf5be
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/test_ujson.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,7 @@ def test_decode_no_assert(test_input):
[
("31337", 31337),
("-31337", -31337),
("100000000000000000000.0", 1e20),
],
)
def test_decode(test_input, expected):
Expand All @@ -549,10 +550,6 @@ def test_decode_numeric_int_exp(test_input):
assert output == json.loads(test_input)


def test_decode_long_float():
assert ujson.decode("100000000000000000000.0") == 1e20


@pytest.mark.parametrize(
"test_input, expected",
[
Expand Down

0 comments on commit cdcf5be

Please sign in to comment.